Layer 220
constructor
inputInvoicePremiumGiftCode#98986c0d purpose:InputStorePaymentPurpose option:PremiumGiftCodeOption = InputInvoice;

Parameters

Name Type Description
Purpose InputStorePaymentPurpose Should be populated with input Store Payment Premium Giveaway for giveaways and input Store Payment Premium Gift Code for gifts.
Option PremiumGiftCodeOption Should be populated with one of the giveaway options returned by payments. get Premium Gift Code Options, see the giveaways documentation for more info.

Returns

InputInvoice

Gogram Example

// Creating InputInvoicePremiumGiftCode constructor
obj := &tg.InputInvoicePremiumGiftCode{
    Purpose: &tg.InputStorePaymentPurpose{},
    Option: &tg.PremiumGiftCodeOption{},
}