Inherits MessageContent.
Toncoins were gifted to a user.
Public Fields | |
| int53 | gifter_user_id_ |
| The identifier of a user that gifted Toncoins; 0 if the gift was anonymous or is outgoing. | |
| int53 | receiver_user_id_ |
| The identifier of a user that received Toncoins; 0 if the gift is incoming. | |
| int53 | ton_amount_ |
| The received amount of Toncoins, in the smallest units of the cryptocurrency. | |
| string | transaction_id_ |
| Identifier of the transaction for Toncoin credit; for receiver only. | |
| object_ptr< sticker > | sticker_ |
| A sticker to be shown in the message; may be null if unknown. | |
Public Instance Methods | |
| messageGiftedTon () | |
| messageGiftedTon (int53 gifter_user_id_, int53 receiver_user_id_, int53 ton_amount_, string const &transaction_id_, object_ptr< sticker > &&sticker_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
| 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 = 766483995 |
| Identifier uniquely determining a type of the object. | |
| messageGiftedTon | ( | ) |
Toncoins were gifted to a user.
| messageGiftedTon | ( | int53 | gifter_user_id_, |
| int53 | receiver_user_id_, | ||
| int53 | ton_amount_, | ||
| string const & | transaction_id_, | ||
| object_ptr< sticker > && | sticker_ | ||
| ) |
Toncoins were gifted to a user.
| [in] | gifter_user_id_ | The identifier of a user that gifted Toncoins; 0 if the gift was anonymous or is outgoing. |
| [in] | receiver_user_id_ | The identifier of a user that received Toncoins; 0 if the gift is incoming. |
| [in] | ton_amount_ | The received amount of Toncoins, in the smallest units of the cryptocurrency. |
| [in] | transaction_id_ | Identifier of the transaction for Toncoin credit; for receiver only. |
| [in] | sticker_ | A sticker to be shown in the message; may be null if unknown. |
|
finalvirtual |