Used to gift a Telegram Premium subscription to another user, paying with Telegram Stars.
inputInvoicePremiumGiftStars#dabab2ef flags:# user_id:InputUser months:int message:flags.0?TextWithEntities = InputInvoice;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
user_id | 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.getPremiumGiftCodeOptions. |
message | flags.0?TextWithEntities | Message attached with the gift. |
Obtain a list of Telegram Premium giveaway/gift code ยป options.
Telegram Premium is an optional subscription service that unlocks additional exclusive client-side and API-side features, while helping support the development of the app.
Telegram Stars are virtual items that allow users to purchase digital goods and services from bots and mini apps inside the Telegram ecosystem, send gifts to content creators on the Telegram platform, and more.