payments.checkedGiftCode
Contains info about a Telegram Premium giftcode link.
type tg.PaymentsCheckedGiftCode struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
ViaGiveaway | bool | — | Whether this giftcode was created by a giveaway. |
FromID | PeerClass | — | The peer that created the gift code. |
GiveawayMsgID | int | — | Message ID of the giveaway in the channel specified in from_id. |
ToID | int64 | — | The destination user of the gift. |
Date | int | yes | Creation date of the gift code. |
Days | int | yes | Duration of the gifted Telegram Premium subscription, in days. |
UsedDate | int | — | When was the giftcode imported, if it was imported. |
Chats | []ChatClass | yes | Mentioned chats |
Users | []UserClass | yes | Mentioned users |
Returned by
References
- Official documentation
- Generated Go reference
- TL definition:
payments.checkedGiftCode#eb983f8f