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
| Name | Type | Required | Description |
|---|---|---|---|
Purpose | InputStorePaymentPurposeClass | yes | Should be populated with inputStorePaymentPremiumGiveaway for giveaways and inputStorePaymentPremiumGiftCode for gifts. |
Option | PremiumGiftCodeOption | yes | Should be populated with one of the giveaway options returned by payments getPremiumGiftCodeOptions, see the giveaways » documentation for more info. |
References
- Official documentation
- Generated Go reference
- TL definition:
inputInvoicePremiumGiftCode#98986c0d