Raw.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.
inputInvoicePremiumGiftCode#98986c0d purpose:InputStorePaymentPurpose option:PremiumGiftCodeOption = InputInvoice;
export namespace Raw {
export class InputInvoicePremiumGiftCode {
constructor(params: {
purpose: Raw.TypeInputStorePaymentPurpose;
option: Raw.TypePremiumGiftCodeOption;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x98986c0d
Property
purpose
: Raw.TypeInputStorePaymentPurposeShould be populated with inputstorepaymentpremiumgiveaway for giveaways and inputstorepaymentpremiumgiftcode for gifts.
option
: Raw.TypePremiumGiftCodeOptionShould be populated with one of the giveaway options returned by payments.getpremiumgiftcodeoptions, see the giveaways documentation for more info.