telegram api constructor · layer 229 · #31c48347

messageActionGiftCode

Contains a Telegram Premium giftcode link.

definition

messageActionGiftCode#31c48347 flags:# via_giveaway:flags.0?true unclaimed:flags.5?true boost_peer:flags.1?Peer days:int slug:string currency:flags.2?string amount:flags.2?long crypto_currency:flags.3?string crypto_amount:flags.3?long message:flags.4?TextWithEntities = MessageAction;

parameters

nametypedescription
flags#Flags, see TL conditional fields
via_giveawayflags.0?trueIf set, this gift code was received from a giveaway » started by a channel/supergroup we're subscribed to.
unclaimedflags.5?trueIf set, the link was not redeemed yet.
boost_peerflags.1?PeerIdentifier of the channel/supergroup that created the gift code either directly or through a giveaway: if we import this giftcode link, we will also automatically boost this channel/supergroup.
daysint
slugstringSlug of the Telegram Premium giftcode link
currencyflags.2?stringThree-letter ISO 4217 currency code
amountflags.2?longTotal price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
crypto_currencyflags.3?stringIf set, the gift was made using the specified cryptocurrency.
crypto_amountflags.3?longIf crypto_currency is set, contains the paid amount, in the smallest units of the cryptocurrency.
messageflags.4?TextWithEntitiesMessage attached with the gift

type

MessageAction · 68 other constructors

history

present in layers 166–229 · constructor id changed 3×

idlayers
#d2cfdb0e166–167
#678c2e09168–189
#56d03994190–216
#31c48347217–229