Skip to content
inputInvoicePremiumGiftCode

inputInvoicePremiumGiftCode

Back to constructors index

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.

Attributes:

NameTypeRequiredDescription
purposeInputStorePaymentPurposeYesShould 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.

Type: InputInvoice

Example:

$inputInvoicePremiumGiftCode = ['_' => 'inputInvoicePremiumGiftCode', 'purpose' => InputStorePaymentPurpose, 'option' => PremiumGiftCodeOption];