payments.checkedGiftCode

Contains info about a Telegram Premium giftcode link.

Constructor schema is available as of layer 168. Switch ยป

Parameters

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

Type

payments.CheckedGiftCode

Related pages

Giveaways

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

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.

Deep links

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.