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

Parameters

Name Type Description
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: 42,
    Message: nil,
}