tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::telegramPaymentPurposePremiumGift Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::telegramPaymentPurposePremiumGift:
td::td_api::TelegramPaymentPurpose td::td_api::Object td::TlObject

Public Member Functions

 telegramPaymentPurposePremiumGift ()
 
 telegramPaymentPurposePremiumGift (string const &currency_, int53 amount_, int53 user_id_, int32 month_count_, object_ptr< formattedText > &&text_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

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< formattedTexttext_
 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.
 

Static Public Attributes

static const std::int32_t ID = -1600286150
 Identifier uniquely determining a type of the object.
 

Detailed Description

The user gifting Telegram Premium to another user.

Definition at line 72207 of file td_api.h.

Constructor & Destructor Documentation

◆ telegramPaymentPurposePremiumGift() [1/2]

td::td_api::telegramPaymentPurposePremiumGift::telegramPaymentPurposePremiumGift ( )

The user gifting Telegram Premium to another user.

◆ telegramPaymentPurposePremiumGift() [2/2]

td::td_api::telegramPaymentPurposePremiumGift::telegramPaymentPurposePremiumGift ( string const &  currency_,
int53  amount_,
int53  user_id_,
int32  month_count_,
object_ptr< formattedText > &&  text_ 
)

The user gifting Telegram Premium to another user.

Parameters
[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, CustomEmoji, and DateTime entities are allowed.

Member Function Documentation

◆ store()

void td::td_api::telegramPaymentPurposePremiumGift::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ amount_

int53 td::td_api::telegramPaymentPurposePremiumGift::amount_

Paid amount, in the smallest units of the currency.

Definition at line 72220 of file td_api.h.

◆ currency_

string td::td_api::telegramPaymentPurposePremiumGift::currency_

ISO 4217 currency code of the payment currency, or "XTR" for payments in Telegram Stars.

Definition at line 72218 of file td_api.h.

◆ ID

const std::int32_t td::td_api::telegramPaymentPurposePremiumGift::ID = -1600286150
static

Identifier uniquely determining a type of the object.

Definition at line 72245 of file td_api.h.

◆ month_count_

int32 td::td_api::telegramPaymentPurposePremiumGift::month_count_

Number of months the Telegram Premium subscription will be active for the user.

Definition at line 72224 of file td_api.h.

◆ text_

object_ptr<formattedText> td::td_api::telegramPaymentPurposePremiumGift::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.

Definition at line 72226 of file td_api.h.

◆ user_id_

int53 td::td_api::telegramPaymentPurposePremiumGift::user_id_

Identifier of the user which will receive Telegram Premium.

Definition at line 72222 of file td_api.h.


The documentation for this class was generated from the following file: