telegram api constructor · layer 229 · #dabab2ef

inputInvoicePremiumGiftStars

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

definition

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 · 14 other constructors

history

present in layers 200–229

idlayers
#dabab2ef200–229