Skip to main content

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.

type tg.InputInvoicePremiumGiftCode struct { /* ... */ }

Implements InputInvoice.

Fields​

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

References​