tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::premiumGiftCodeInfo Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::premiumGiftCodeInfo:
td::td_api::Object td::TlObject

Public Member Functions

 premiumGiftCodeInfo ()
 
 premiumGiftCodeInfo (object_ptr< MessageSender > &&creator_id_, int32 creation_date_, bool is_from_giveaway_, int53 giveaway_message_id_, int32 month_count_, int32 day_count_, int53 user_id_, int32 use_date_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

object_ptr< MessageSendercreator_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&#x27;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 Public Attributes

static const std::int32_t ID = -262674203
 Identifier uniquely determining a type of the object.
 

Detailed Description

Contains information about a Telegram Premium gift code.

Definition at line 53527 of file td_api.h.

Constructor & Destructor Documentation

◆ premiumGiftCodeInfo() [1/2]

td::td_api::premiumGiftCodeInfo::premiumGiftCodeInfo ( )

Contains information about a Telegram Premium gift code.

◆ premiumGiftCodeInfo() [2/2]

td::td_api::premiumGiftCodeInfo::premiumGiftCodeInfo ( object_ptr< MessageSender > &&  creator_id_,
int32  creation_date_,
bool  is_from_giveaway_,
int53  giveaway_message_id_,
int32  month_count_,
int32  day_count_,
int53  user_id_,
int32  use_date_ 
)

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&#x27;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.

Member Function Documentation

◆ 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]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ 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_

object_ptr<MessageSender> td::td_api::premiumGiftCodeInfo::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&#x27;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: