inputInvoicePremiumGiftStars #

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

Layer 223

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

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
user_idInputUserWho will receive the gifted subscription.
monthsintDuration of the subscription in months, must be one of the options with currency == "XTR" returned by payments.getPremiumGiftCodeOptions.
messageflags.0?TextWithEntitiesMessage attached with the gift.

Type #

InputInvoice

payments.getPremiumGiftCodeOptions #

Obtain a list of Telegram Premium giveaway/gift code » options.

Telegram Premium #

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 #

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.