inputInvoicePremiumGiftStars
Used to gift a Telegram Premium subscription to another user, paying with Telegram Stars.
type tg.InputInvoicePremiumGiftStars struct { /* ... */ }
Implements InputInvoice.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
UserID | InputUserClass | yes | Who will receive the gifted subscription. |
Months | int | yes | Duration of the subscription in months, must be one of the options with currency == "XTR" returned by payments.getPremiumGiftCodeOptions. |
Message | TextWithEntities | — | Message attached with the gift. |
References
- Official documentation
- Generated Go reference
- TL definition:
inputInvoicePremiumGiftStars#dabab2ef