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.

Layer 223

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

inputStorePaymentPremiumGiveaway #

Used to pay for a giveaway, see here » for more info.

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.

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.

payments.getPremiumGiftCodeOptions #

Obtain a list of Telegram Premium giveaway/gift code » options.

Channel and supergroup boosts #

Telegram Premium users can grant their favorite channels and supergroups additional features like the ability to post stories by giving them boosts.