TDLib
Loading...
Searching...
No Matches
td::td_api::messageGiftedPremium Class Referencefinal

Inherits td::td_api::MessageContent.

Public Member Functions

 messageGiftedPremium ()
 
 messageGiftedPremium (int53 gifter_user_id_, string const &currency_, int53 amount_, string const &cryptocurrency_, int64 cryptocurrency_amount_, int32 month_count_, object_ptr< sticker > &&sticker_)
 
std::int32_t get_id () const final
 
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

int53 gifter_user_id_
 The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous.
 
string currency_
 Currency for the paid amount.
 
int53 amount_
 The paid amount, in the smallest units of the currency.
 
string cryptocurrency_
 Cryptocurrency used to pay for the gift; may be empty if none.
 
int64 cryptocurrency_amount_
 The paid amount, in the smallest units of the cryptocurrency.
 
int32 month_count_
 Number of month the Telegram Premium subscription will be active.
 
object_ptr< stickersticker_
 A sticker to be shown in the message; may be null if unknown.
 

Static Public Attributes

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

Detailed Description

Telegram Premium was gifted to the user.

Constructor & Destructor Documentation

◆ messageGiftedPremium() [1/2]

td::td_api::messageGiftedPremium::messageGiftedPremium ( )

Telegram Premium was gifted to the user.

◆ messageGiftedPremium() [2/2]

td::td_api::messageGiftedPremium::messageGiftedPremium ( int53  gifter_user_id_,
string const &  currency_,
int53  amount_,
string const &  cryptocurrency_,
int64  cryptocurrency_amount_,
int32  month_count_,
object_ptr< sticker > &&  sticker_ 
)

Telegram Premium was gifted to the user.

Parameters
[in]gifter_user_id_The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous.
[in]currency_Currency for the paid amount.
[in]amount_The paid amount, in the smallest units of the currency.
[in]cryptocurrency_Cryptocurrency used to pay for the gift; may be empty if none.
[in]cryptocurrency_amount_The paid amount, in the smallest units of the cryptocurrency.
[in]month_count_Number of month the Telegram Premium subscription will be active.
[in]sticker_A sticker to be shown in the message; may be null if unknown.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::messageGiftedPremium::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::messageGiftedPremium::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.


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