#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
|
| | messagePremiumGiftCode () |
| |
| | messagePremiumGiftCode (object_ptr< MessageSender > &&creator_id_, object_ptr< formattedText > &&text_, bool is_from_giveaway_, bool is_unclaimed_, string const ¤cy_, int53 amount_, string const &cryptocurrency_, int64 cryptocurrency_amount_, int32 month_count_, int32 day_count_, object_ptr< sticker > &&sticker_, string const &code_) |
| |
| 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 = 680217675 |
| | Identifier uniquely determining a type of the object.
|
| |
A Telegram Premium gift code was created for the user.
Definition at line 41767 of file td_api.h.
◆ messagePremiumGiftCode() [1/2]
| td::td_api::messagePremiumGiftCode::messagePremiumGiftCode |
( |
| ) |
|
A Telegram Premium gift code was created for the user.
◆ messagePremiumGiftCode() [2/2]
| td::td_api::messagePremiumGiftCode::messagePremiumGiftCode |
( |
object_ptr< MessageSender > && |
creator_id_, |
|
|
object_ptr< formattedText > && |
text_, |
|
|
bool |
is_from_giveaway_, |
|
|
bool |
is_unclaimed_, |
|
|
string const & |
currency_, |
|
|
int53 |
amount_, |
|
|
string const & |
cryptocurrency_, |
|
|
int64 |
cryptocurrency_amount_, |
|
|
int32 |
month_count_, |
|
|
int32 |
day_count_, |
|
|
object_ptr< sticker > && |
sticker_, |
|
|
string const & |
code_ |
|
) |
| |
A Telegram Premium gift code was created for the user.
- Parameters
-
| [in] | creator_id_ | Identifier of a chat or a user who created the gift code; may be null if unknown. |
| [in] | text_ | Message added to the gift. |
| [in] | is_from_giveaway_ | True, if the gift code was created for a giveaway. |
| [in] | is_unclaimed_ | True, if the winner for the corresponding Telegram Premium subscription wasn't chosen. |
| [in] | currency_ | Currency for the paid amount; empty if unknown. |
| [in] | amount_ | The paid amount, in the smallest units of the currency; 0 if unknown. |
| [in] | cryptocurrency_ | Cryptocurrency used to pay for the gift; may be empty if none or unknown. |
| [in] | cryptocurrency_amount_ | The paid amount, in the smallest units of the cryptocurrency; 0 if unknown. |
| [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 after code activation. |
| [in] | sticker_ | A sticker to be shown in the message; may be null if unknown. |
| [in] | code_ | The gift code. |
◆ store()
| void td::td_api::messagePremiumGiftCode::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::messagePremiumGiftCode::amount_ |
The paid amount, in the smallest units of the currency; 0 if unknown.
Definition at line 41788 of file td_api.h.
◆ code_
| string td::td_api::messagePremiumGiftCode::code_ |
◆ creator_id_
Identifier of a chat or a user who created the gift code; may be null if unknown.
Definition at line 41778 of file td_api.h.
◆ cryptocurrency_
| string td::td_api::messagePremiumGiftCode::cryptocurrency_ |
Cryptocurrency used to pay for the gift; may be empty if none or unknown.
Definition at line 41790 of file td_api.h.
◆ cryptocurrency_amount_
| int64 td::td_api::messagePremiumGiftCode::cryptocurrency_amount_ |
The paid amount, in the smallest units of the cryptocurrency; 0 if unknown.
Definition at line 41792 of file td_api.h.
◆ currency_
| string td::td_api::messagePremiumGiftCode::currency_ |
Currency for the paid amount; empty if unknown.
Definition at line 41786 of file td_api.h.
◆ day_count_
| int32 td::td_api::messagePremiumGiftCode::day_count_ |
Number of days the Telegram Premium subscription will be active after code activation.
Definition at line 41796 of file td_api.h.
◆ ID
| const std::int32_t td::td_api::messagePremiumGiftCode::ID = 680217675 |
|
static |
Identifier uniquely determining a type of the object.
Definition at line 41826 of file td_api.h.
◆ is_from_giveaway_
| bool td::td_api::messagePremiumGiftCode::is_from_giveaway_ |
True, if the gift code was created for a giveaway.
Definition at line 41782 of file td_api.h.
◆ is_unclaimed_
| bool td::td_api::messagePremiumGiftCode::is_unclaimed_ |
True, if the winner for the corresponding Telegram Premium subscription wasn't chosen.
Definition at line 41784 of file td_api.h.
◆ month_count_
| int32 td::td_api::messagePremiumGiftCode::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 41794 of file td_api.h.
◆ sticker_
A sticker to be shown in the message; may be null if unknown.
Definition at line 41798 of file td_api.h.
◆ text_
Message added to the gift.
Definition at line 41780 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