#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
|
| | messageGiftedPremium () |
| |
| | messageGiftedPremium (int53 gifter_user_id_, int53 receiver_user_id_, object_ptr< formattedText > &&text_, string const ¤cy_, int53 amount_, string const &cryptocurrency_, int64 cryptocurrency_amount_, int32 month_count_, int32 day_count_, object_ptr< sticker > &&sticker_) |
| |
| void | store (TlStorerToString &s, const char *field_name) const final |
| |
| 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 const std::int32_t | ID = 807892848 |
| | Identifier uniquely determining a type of the object.
|
| |
Telegram Premium was gifted to a user.
Definition at line 41701 of file td_api.h.
◆ messageGiftedPremium() [1/2]
| td::td_api::messageGiftedPremium::messageGiftedPremium |
( |
| ) |
|
Telegram Premium was gifted to a user.
◆ messageGiftedPremium() [2/2]
Telegram Premium was gifted to a user.
- Parameters
-
| [in] | gifter_user_id_ | The identifier of a user who gifted Telegram Premium; 0 if the gift was anonymous or is outgoing. |
| [in] | receiver_user_id_ | The identifier of a user who received Telegram Premium; 0 if the gift is incoming. |
| [in] | text_ | Message added to the gifted Telegram Premium by the sender. |
| [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] | month_count_ | Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn't integer. |
| [in] | day_count_ | Number of days the Telegram Premium subscription will be active. |
| [in] | sticker_ | A sticker to be shown in the message; may be null if unknown. |
◆ 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] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
◆ amount_
| int53 td::td_api::messageGiftedPremium::amount_ |
The paid amount, in the smallest units of the currency.
Definition at line 41720 of file td_api.h.
◆ cryptocurrency_
| string td::td_api::messageGiftedPremium::cryptocurrency_ |
Cryptocurrency used to pay for the gift; may be empty if none.
Definition at line 41722 of file td_api.h.
◆ cryptocurrency_amount_
| int64 td::td_api::messageGiftedPremium::cryptocurrency_amount_ |
The paid amount, in the smallest units of the cryptocurrency; 0 if none.
Definition at line 41724 of file td_api.h.
◆ currency_
| string td::td_api::messageGiftedPremium::currency_ |
Currency for the paid amount.
Definition at line 41718 of file td_api.h.
◆ day_count_
| int32 td::td_api::messageGiftedPremium::day_count_ |
Number of days the Telegram Premium subscription will be active.
Definition at line 41728 of file td_api.h.
◆ gifter_user_id_
| int53 td::td_api::messageGiftedPremium::gifter_user_id_ |
The identifier of a user who gifted Telegram Premium; 0 if the gift was anonymous or is outgoing.
Definition at line 41712 of file td_api.h.
◆ ID
| const std::int32_t td::td_api::messageGiftedPremium::ID = 807892848 |
|
static |
Identifier uniquely determining a type of the object.
Definition at line 41754 of file td_api.h.
◆ month_count_
| int32 td::td_api::messageGiftedPremium::month_count_ |
Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn't integer.
Definition at line 41726 of file td_api.h.
◆ receiver_user_id_
| int53 td::td_api::messageGiftedPremium::receiver_user_id_ |
The identifier of a user who received Telegram Premium; 0 if the gift is incoming.
Definition at line 41714 of file td_api.h.
◆ sticker_
A sticker to be shown in the message; may be null if unknown.
Definition at line 41730 of file td_api.h.
◆ text_
Message added to the gifted Telegram Premium by the sender.
Definition at line 41716 of file td_api.h.
The documentation for this class was generated from the following file:
- /home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h