List of all members | Public Fields | Public Instance Methods | Static Public Attributes
premiumGiftCodeInfo Class Referencefinal

Inherits Object.

Description

Contains information about a Telegram Premium gift code.

Public Fields

object_ptr< MessageSendercreator_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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ premiumGiftCodeInfo() [1/2]

Contains information about a Telegram Premium gift code.

◆ premiumGiftCodeInfo() [2/2]

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.

Parameters
[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.

Method Documentation

◆ store()

void 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 TlObject.


The documentation for this class was generated from the following file: