telegram api constructor · layer 229 · #98986c0d

inputInvoicePremiumGiftCode

Used if the user wishes to start a channel/supergroup giveaway or send some giftcodes to members of a channel/supergroup, in exchange for boosts.

definition

inputInvoicePremiumGiftCode#98986c0d purpose:InputStorePaymentPurpose option:PremiumGiftCodeOption = InputInvoice;

parameters

nametypedescription
purposeInputStorePaymentPurposeShould be populated with inputStorePaymentPremiumGiveaway for giveaways and inputStorePaymentPremiumGiftCode for gifts.
optionPremiumGiftCodeOptionShould be populated with one of the giveaway options returned by payments.getPremiumGiftCodeOptions, see the giveaways » documentation for more info.

type

InputInvoice · 14 other constructors

history

present in layers 166–229

idlayers
#98986c0d166–229