Skip to main content

inputInvoicePremiumGiftStars

Used to gift a Telegram Premium subscription to another user, paying with Telegram Stars.

type tg.InputInvoicePremiumGiftStars struct { /* ... */ }

Implements InputInvoice.

Fields

NameTypeRequiredDescription
UserIDInputUserClassyesWho will receive the gifted subscription.
MonthsintyesDuration of the subscription in months, must be one of the options with currency == "XTR" returned by payments.getPremiumGiftCodeOptions.
MessageTextWithEntitiesMessage attached with the gift.

References