Layer 220
constructor
inputInvoicePremiumGiftStars#dabab2ef flags:# user_id:InputUser months:int message:flags.0?TextWithEntities = InputInvoice;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
UserId InputUser Who will receive the gifted subscription.
Months int Duration of the subscription in months, must be one of the options with currency == "XTR" returned by payments. get Premium Gift Code Options.
Message flags.0?TextWithEntities Message attached with the gift.

Returns

InputInvoice

Gogram Example

// Creating InputInvoicePremiumGiftStars constructor
obj := &tg.InputInvoicePremiumGiftStars{
    UserId: &tg.InputUserSelf{},
    Months: 0,

    // Optional fields:
    // Message: &tg.TextWithEntities{},
}