Layer 220
InputInvoicePremiumGiftStars
Used to gift a Telegram Premium subscription to another user, paying with Telegram Stars.
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
InputInvoiceGogram Example
// Creating InputInvoicePremiumGiftStars constructor obj := &tg.InputInvoicePremiumGiftStars{ UserId: &tg.InputUserSelf{}, Months: 0, // Optional fields: // Message: &tg.TextWithEntities{}, }