Contains info about a Telegram Premium giftcode link.
payments.checkedGiftCode#284a1096 flags:# via_giveaway:flags.2?true from_id:flags.4?Peer giveaway_msg_id:flags.3?int to_id:flags.0?long date:int months:int used_date:flags.1?int chats:Vector<Chat> users:Vector<User> = payments.CheckedGiftCode;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
via_giveaway | flags.2?true | Whether this giftcode was created by a giveaway. |
from_id | flags.4?Peer | The peer that created the gift code. |
giveaway_msg_id | flags.3?int | Message ID of the giveaway in the channel specified in from_id . |
to_id | flags.0?long | The destination user of the gift. |
date | int | Creation date of the gift code. |
months | int | Duration in months of the gifted Telegram Premium subscription. |
used_date | flags.1?int | When was the giftcode imported, if it was imported. |
chats | Vector<Chat> | Mentioned chats |
users | Vector<User> | Mentioned users |
Telegram channel and supergroup administrators may launch giveaways to randomly distribute Telegram Premium subscriptions and other gifts among their followers, in exchange for boosts.
Telegram Premium is an optional subscription service that unlocks additional exclusive client-side and API-side features, while helping support the development of the app.
Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.