#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
|
| object_ptr< MessageSender > | creator_id_ |
| | Identifier of a chat or a user who created the gift code; may be null if unknown. If null and the code is from messagePremiumGiftCode message, then creator_id from the message can be used.
|
| |
| int32 | creation_date_ |
| | Point in time (Unix timestamp) when the code was created.
|
| |
| bool | is_from_giveaway_ |
| | True, if the gift code was created for a giveaway.
|
| |
| int53 | giveaway_message_id_ |
| | Identifier of the corresponding giveaway message in the creator_id chat; may be 0 or an identifier of a deleted message.
|
| |
| int32 | month_count_ |
| | Number of months the Telegram Premium subscription will be active after code activation; 0 if the number of months isn't integer.
|
| |
| int32 | day_count_ |
| | Number of days the Telegram Premium subscription will be active after code activation.
|
| |
| int53 | user_id_ |
| | Identifier of a user for which the code was created; 0 if none.
|
| |
| int32 | use_date_ |
| | Point in time (Unix timestamp) when the code was activated; 0 if none.
|
| |
|
| static const std::int32_t | ID = -262674203 |
| | Identifier uniquely determining a type of the object.
|
| |
Contains information about a Telegram Premium gift code.
Definition at line 53527 of file td_api.h.
◆ premiumGiftCodeInfo() [1/2]
| td::td_api::premiumGiftCodeInfo::premiumGiftCodeInfo |
( |
| ) |
|
Contains information about a Telegram Premium gift code.
◆ premiumGiftCodeInfo() [2/2]
Contains information about a Telegram Premium gift code.
- Parameters
-
| [in] | creator_id_ | Identifier of a chat or a user who created the gift code; may be null if unknown. If null and the code is from messagePremiumGiftCode message, then creator_id from the message can be used. |
| [in] | creation_date_ | Point in time (Unix timestamp) when the code was created. |
| [in] | is_from_giveaway_ | True, if the gift code was created for a giveaway. |
| [in] | giveaway_message_id_ | Identifier of the corresponding giveaway message in the creator_id chat; may be 0 or an identifier of a deleted message. |
| [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] | user_id_ | Identifier of a user for which the code was created; 0 if none. |
| [in] | use_date_ | Point in time (Unix timestamp) when the code was activated; 0 if none. |
◆ store()
| void td::td_api::premiumGiftCodeInfo::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.
◆ creation_date_
| int32 td::td_api::premiumGiftCodeInfo::creation_date_ |
Point in time (Unix timestamp) when the code was created.
Definition at line 53540 of file td_api.h.
◆ creator_id_
Identifier of a chat or a user who created the gift code; may be null if unknown. If null and the code is from messagePremiumGiftCode message, then creator_id from the message can be used.
Definition at line 53538 of file td_api.h.
◆ day_count_
| int32 td::td_api::premiumGiftCodeInfo::day_count_ |
Number of days the Telegram Premium subscription will be active after code activation.
Definition at line 53548 of file td_api.h.
◆ giveaway_message_id_
| int53 td::td_api::premiumGiftCodeInfo::giveaway_message_id_ |
Identifier of the corresponding giveaway message in the creator_id chat; may be 0 or an identifier of a deleted message.
Definition at line 53544 of file td_api.h.
◆ ID
| const std::int32_t td::td_api::premiumGiftCodeInfo::ID = -262674203 |
|
static |
Identifier uniquely determining a type of the object.
Definition at line 53574 of file td_api.h.
◆ is_from_giveaway_
| bool td::td_api::premiumGiftCodeInfo::is_from_giveaway_ |
True, if the gift code was created for a giveaway.
Definition at line 53542 of file td_api.h.
◆ month_count_
| int32 td::td_api::premiumGiftCodeInfo::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 53546 of file td_api.h.
◆ use_date_
| int32 td::td_api::premiumGiftCodeInfo::use_date_ |
Point in time (Unix timestamp) when the code was activated; 0 if none.
Definition at line 53552 of file td_api.h.
◆ user_id_
| int53 td::td_api::premiumGiftCodeInfo::user_id_ |
Identifier of a user for which the code was created; 0 if none.
Definition at line 53550 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