mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.7 KiB
1.7 KiB
title | description | nav_exclude | image |
---|---|---|---|
inputInvoicePremiumGiftCode | Used if the user wishes to start a channel giveaway or send some giftcodes to members of a channel, in exchange for boosts. | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: inputInvoicePremiumGiftCode
Used if the user wishes to start a channel giveaway or send some giftcodes to members of a channel, in exchange for boosts.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
purpose | InputStorePaymentPurpose | 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. |
Type: InputInvoice
Example:
$inputInvoicePremiumGiftCode = ['_' => 'inputInvoicePremiumGiftCode', 'purpose' => InputStorePaymentPurpose, 'option' => PremiumGiftCodeOption];