telegram api constructor · layer 229 · #fb790393

inputStorePaymentPremiumGiftCode

Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel/supergroup or to some of our contacts, see here » for more info on giveaways and gifts.

definition

inputStorePaymentPremiumGiftCode#fb790393 flags:# users:Vector<InputUser> boost_peer:flags.0?InputPeer currency:string amount:long message:flags.1?TextWithEntities = InputStorePaymentPurpose;

parameters

nametypedescription
flags#Flags, see TL conditional fields
usersVector<InputUser>The users that will receive the Telegram Premium subscriptions.
boost_peerflags.0?InputPeerIf set, the gifts will be sent on behalf of a channel/supergroup we are an admin of, which will also assign some boosts to it. Otherwise, the gift will be sent directly from the currently logged in user, and we will gain some extra boost slots. See here » for more info on giveaways and gifts.
currencystringThree-letter ISO 4217 currency code
amountlongTotal 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).
messageflags.1?TextWithEntitiesMessage attached with the gift

type

InputStorePaymentPurpose · other constructors: inputStorePaymentPremiumSubscription, inputStorePaymentGiftPremium, inputStorePaymentPremiumGiveaway, inputStorePaymentStarsTopup, inputStorePaymentStarsGift, inputStorePaymentStarsGiveaway, inputStorePaymentAuthCode

history

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

idlayers
#a3805f3f166–189
#fb790393190–229