telegram api constructor · layer 229 · #eb983f8f
payments.checkedGiftCode
Contains info about a Telegram Premium giftcode link.
definition
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 |
|---|---|---|
flags | # | Flags, see TL conditional fields |
via_giveaway | true | Whether this giftcode was created by a giveaway. |
from_id | Peer | The peer that created the gift code. |
giveaway_msg_id | int | Message ID of the giveaway in the channel specified in from_id. |
to_id | long | The destination user of the gift. |
date | int | Creation date of the gift code. |
days | int | |
used_date | int | When was the giftcode imported, if it was imported. |
chats | Vector<Chat> | Mentioned chats |
users | Vector<User> | Mentioned users |
type
history
present in layers 166–229 · constructor id changed 2×
| id | layers |
|---|---|
| #b722f158 | 166–167 |
| #284a1096 | 168–216 |
| #eb983f8f | 217–229 |