Inherits MessageContent.
Telegram Stars were gifted to a user.
Public Fields | |
| int53 | gifter_user_id_ |
| The identifier of a user that gifted Telegram Stars; 0 if the gift was anonymous or is outgoing. | |
| int53 | receiver_user_id_ |
| The identifier of a user that received Telegram Stars; 0 if the gift is incoming. | |
| 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; 0 if none. | |
| int53 | star_count_ |
| Number of Telegram Stars that were gifted. | |
| string | transaction_id_ |
| Identifier of the transaction for Telegram Stars purchase; for receiver only. | |
| object_ptr< sticker > | sticker_ |
| A sticker to be shown in the message; may be null if unknown. | |
Public Instance Methods | |
| messageGiftedStars () | |
| messageGiftedStars (int53 gifter_user_id_, int53 receiver_user_id_, string const ¤cy_, int53 amount_, string const &cryptocurrency_, int64 cryptocurrency_amount_, int53 star_count_, 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 = 1102954151 |
| Identifier uniquely determining a type of the object. | |
Telegram Stars were gifted to a user.
| messageGiftedStars | ( | int53 | gifter_user_id_, |
| int53 | receiver_user_id_, | ||
| string const & | currency_, | ||
| int53 | amount_, | ||
| string const & | cryptocurrency_, | ||
| int64 | cryptocurrency_amount_, | ||
| int53 | star_count_, | ||
| string const & | transaction_id_, | ||
| object_ptr< sticker > && | sticker_ | ||
| ) |
Telegram Stars were gifted to a user.
| [in] | gifter_user_id_ | The identifier of a user that gifted Telegram Stars; 0 if the gift was anonymous or is outgoing. |
| [in] | receiver_user_id_ | The identifier of a user that received Telegram Stars; 0 if the gift is incoming. |
| [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; 0 if none. |
| [in] | star_count_ | Number of Telegram Stars that were gifted. |
| [in] | transaction_id_ | Identifier of the transaction for Telegram Stars purchase; for receiver only. |
| [in] | sticker_ | A sticker to be shown in the message; may be null if unknown. |
|
finalvirtual |