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
| 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 | TextWithEntities | Message attached with the gift. |
type
InputInvoice · 14 other constructors
history
present in layers 200–229
| id | layers |
|---|---|
| #dabab2ef | 200–229 |