TelegramPaymentPurposePremiumGift¶
The user gifting Telegram Premium to another user
TelegramPaymentPurposePremiumGift(
currency: string,
amount: int53,
user_id: int53,
month_count: int32,
text: FormattedText
) → TelegramPaymentPurpose
currency¶
string
ISO 4217 currency code of the payment currency, or "XTR" for payments in Telegram Stars
amount¶
int53
Paid amount, in the smallest units of the currency
user_id¶
int53
Identifier of the user who will receive Telegram Premium
month_count¶
int32
Number of months the Telegram Premium subscription will be active for the user
text¶
Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed