View Source ExTDLib.Object.MessagePremiumGiftCode (ExTDLib v0.0.4)
A Telegram Premium gift code was created for the user.
| Name | Type | Description |
|---|---|---|
| creator_id | MessageSender | Identifier of a chat or a user that created the gift code. |
| is_from_giveaway | bool | True, if the gift code was created for a giveaway. |
| is_unclaimed | bool | True, if the winner for the corresponding Telegram Premium subscription wasn't chosen. |
| month_count | number | Number of month the Telegram Premium subscription will be active after code activation. |
| sticker | sticker | A sticker to be shown in the message; may be null if unknown. |
| code | string | The gift code. |
More details on telegram's documentation.