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
| name | type | description |
|---|---|---|
purpose | InputStorePaymentPurpose | Should be populated with inputStorePaymentPremiumGiveaway for giveaways and inputStorePaymentPremiumGiftCode for gifts. |
option | PremiumGiftCodeOption | Should 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
| id | layers |
|---|---|
| #98986c0d | 166–229 |