payments.checkedGiftCode #

Contains info about a Telegram Premium giftcode link.

Layer 223

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 #

NameTypeDescription
flags#Flags, see TL conditional fields
via_giveawayflags.2?trueWhether this giftcode was created by a giveaway.
from_idflags.4?PeerThe peer that created the gift code.
giveaway_msg_idflags.3?intMessage ID of the giveaway in the channel specified in from_id.
to_idflags.0?longThe destination user of the gift.
dateintCreation date of the gift code.
daysintDuration of the gifted Telegram Premium subscription, in days.
used_dateflags.1?intWhen was the giftcode imported, if it was imported.
chatsVector<Chat>Mentioned chats
usersVector<User>Mentioned users

Type #

payments.CheckedGiftCode

Giveaways and gifts #

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 clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.