Inherits TelegramPaymentPurpose.
The user gifting Telegram Premium to another user.
Public Fields | |
string | currency_ |
ISO 4217 currency code of the payment currency, or "XTR" for payments in Telegram Stars. | |
int53 | amount_ |
Paid amount, in the smallest units of the currency. | |
int53 | user_id_ |
Identifier of the user which will receive Telegram Premium. | |
int32 | month_count_ |
Number of months the Telegram Premium subscription will be active for the user. | |
object_ptr< formattedText > | text_ |
Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed. | |
Public Instance Methods | |
telegramPaymentPurposePremiumGift () | |
telegramPaymentPurposePremiumGift (string const ¤cy_, int53 amount_, int53 user_id_, int32 month_count_, object_ptr< formattedText > &&text_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
![]() | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -1600286150 |
Identifier uniquely determining a type of the object. | |
The user gifting Telegram Premium to another user.
telegramPaymentPurposePremiumGift | ( | string const & | currency_, |
int53 | amount_, | ||
int53 | user_id_, | ||
int32 | month_count_, | ||
object_ptr< formattedText > && | text_ | ||
) |
The user gifting Telegram Premium to another user.
[in] | currency_ | ISO 4217 currency code of the payment currency, or "XTR" for payments in Telegram Stars. |
[in] | amount_ | Paid amount, in the smallest units of the currency. |
[in] | user_id_ | Identifier of the user which will receive Telegram Premium. |
[in] | month_count_ | Number of months the Telegram Premium subscription will be active for the user. |
[in] | text_ | Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed. |
|
finalvirtual |