Layer 220
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.
constructor
inputInvoicePremiumGiftCode#98986c0d purpose:InputStorePaymentPurpose option:PremiumGiftCodeOption = InputInvoice;
Parameters
| Name | Type | Description |
|---|---|---|
| Purpose | InputStorePaymentPurpose | Should be populated with input Store Payment Premium Giveaway for giveaways and input Store Payment Premium Gift Code for gifts. |
| Option | PremiumGiftCodeOption | Should be populated with one of the giveaway options returned by payments. get Premium Gift Code Options, see the giveaways documentation for more info. |
Returns
InputInvoiceGogram Example
// Creating InputInvoicePremiumGiftCode constructor obj := &tg.InputInvoicePremiumGiftCode{ Purpose: &tg.InputStorePaymentPurpose{}, Option: &tg.PremiumGiftCodeOption{}, }