InputInvoicePremiumGiftCode

class pyrogram.raw.types.InputInvoicePremiumGiftCode

Used if the user wishes to start a channel giveaway or send some giftcodes to members of a channel, in exchange for boosts.

Constructor of InputInvoice.

Details:
  • Layer: 187

  • ID: 98986C0D

Parameters:
  • 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.