View Source ExTDLib.Object.PremiumGiftCodeInfo (ExTDLib v0.0.4)
Contains information about a Telegram Premium gift code.
| Name | Type | Description |
|---|---|---|
| creator_id | MessageSender | Identifier of a chat or a user that created the gift code. |
| creation_date | number | Point in time (Unix timestamp) when the code was created. |
| is_from_giveaway | bool | True, if the gift code was created for a giveaway. |
| giveaway_message_id | string | Identifier of the corresponding giveaway message in the creator_id chat; can be 0 or an identifier of a deleted message. |
| month_count | number | Number of month the Telegram Premium subscription will be active after code activation. |
| user_id | string | Identifier of a user for which the code was created; 0 if none. |
| use_date | number | Point in time (Unix timestamp) when the code was activated; 0 if none. |
More details on telegram's documentation.