TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
messageGiftedTon Class Referencefinal

Inherits MessageContent.

Description

TON Grams were gifted to a user.

Public Member Functions

 messageGiftedTon ()
 
 messageGiftedTon (int53 gifter_user_id_, int53 receiver_user_id_, int53 gram_amount_, string const &transaction_id_, object_ptr< sticker > &&sticker_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
 
TlObject & operator= (TlObject &&)=default
 
virtual void store (TlStorerCalcLength &s) const
 
virtual void store (TlStorerUnsafe &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

int53 gifter_user_id_
 The identifier of a user who gifted Grams; 0 if the gift was anonymous or is outgoing.
 
int53 gram_amount_
 The received Gram amount, in the smallest units of the cryptocurrency.
 
int53 receiver_user_id_
 The identifier of a user who received Grams; 0 if the gift is incoming.
 
object_ptr< sticker > sticker_
 A sticker to be shown in the message; may be null if unknown.
 
string transaction_id_
 Identifier of the transaction for Gram credit; for receiver only.
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageGiftedTon() [1/2]

TON Grams were gifted to a user.

◆ messageGiftedTon() [2/2]

messageGiftedTon ( int53  gifter_user_id_,
int53  receiver_user_id_,
int53  gram_amount_,
string const &  transaction_id_,
object_ptr< sticker > &&  sticker_ 
)

TON Grams were gifted to a user.

Parameters
[in]gifter_user_id_The identifier of a user who gifted Grams; 0 if the gift was anonymous or is outgoing.
[in]receiver_user_id_The identifier of a user who received Grams; 0 if the gift is incoming.
[in]gram_amount_The received Gram amount, in the smallest units of the cryptocurrency.
[in]transaction_id_Identifier of the transaction for Gram credit; for receiver only.
[in]sticker_A sticker to be shown in the message; may be null if unknown.

Member Function Documentation

◆ store()

void 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 TlObject.


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