Inherits Object.
Contains information about a Telegram Premium gift code.
Public Fields | |
object_ptr< MessageSender > | creator_id_ |
Identifier of a chat or a user that 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; can 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. | |
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. | |
Public Instance Methods | |
premiumGiftCodeInfo () | |
premiumGiftCodeInfo (object_ptr< MessageSender > &&creator_id_, int32 creation_date_, bool is_from_giveaway_, int53 giveaway_message_id_, int32 month_count_, int53 user_id_, int32 use_date_) | |
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 = -1198544674 |
Identifier uniquely determining a type of the object. | |
Contains information about a Telegram Premium gift code.
premiumGiftCodeInfo | ( | object_ptr< MessageSender > && | creator_id_, |
int32 | creation_date_, | ||
bool | is_from_giveaway_, | ||
int53 | giveaway_message_id_, | ||
int32 | month_count_, | ||
int53 | user_id_, | ||
int32 | use_date_ | ||
) |
Contains information about a Telegram Premium gift code.
[in] | creator_id_ | Identifier of a chat or a user that 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; can 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. |
[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. |
|
finalvirtual |