Layer 227
PaymentsCheckedGiftCodeObj
Contains info about a Telegram Premium giftcode link.
constructor
payments.checkedGiftCode#eb983f8f flags:# via_giveaway:flags.2?true from_id:flags.4?Peer giveaway_msg_id:flags.3?int to_id:flags.0?long date:int days:int used_date:flags.1?int chats:Vector<Chat> users:Vector<User> = payments.CheckedGiftCode;
Parameters
| Name | Type | Description |
|---|---|---|
| ViaGiveaway | flags .2? true | Whether this giftcode was created by a giveaway. |
| FromId | flags .4? Peer | The peer that created the gift code. |
| GiveawayMsgId | flags .3? int | Message ID of the giveaway in the channel specified in from_id. |
| ToId | flags .0? long | The destination user of the gift. |
| Date | int | Creation date of the gift code. |
| Days | int | Duration of the gifted Telegram Premium subscription, in days. |
| UsedDate | flags .1? int | When was the giftcode imported, if it was imported. |
| Chats | Vector < Chat > | Mentioned chats |
| Users | Vector < User > | Mentioned users |
Returns
payments.CheckedGiftCodeGogram Example
// Creating PaymentsCheckedGiftCodeObj constructor obj := &tg.PaymentsCheckedGiftCodeObj{ ViaGiveaway: nil, FromId: nil, GiveawayMsgId: nil, ToId: nil, Date: 42, Days: 42, // ... more required fields }