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::messagePremiumGiftCode Class Referencefinal

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

Inheritance diagram for td::td_api::messagePremiumGiftCode:
td::td_api::MessageContent td::td_api::Object td::TlObject

Public Member Functions

 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_)
 
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.
 
object_ptr< formattedTexttext_
 Message added to the gift.
 
bool is_from_giveaway_
 True, if the gift code was created for a giveaway.
 
bool is_unclaimed_
 True, if the winner for the corresponding Telegram Premium subscription wasn&#x27;t chosen.
 
string currency_
 Currency for the paid amount; empty if unknown.
 
int53 amount_
 The paid amount, in the smallest units of the currency; 0 if unknown.
 
string cryptocurrency_
 Cryptocurrency used to pay for the gift; may be empty if none or unknown.
 
int64 cryptocurrency_amount_
 The paid amount, in the smallest units of the cryptocurrency; 0 if unknown.
 
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.
 
object_ptr< stickersticker_
 A sticker to be shown in the message; may be null if unknown.
 
string code_
 The gift code.
 

Static Public Attributes

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

Detailed Description

A Telegram Premium gift code was created for the user.

Definition at line 41767 of file td_api.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements td::TlObject.

Member Data Documentation

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

The gift code.

Definition at line 41800 of file td_api.h.

◆ creator_id_

object_ptr<MessageSender> td::td_api::messagePremiumGiftCode::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&#x27;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&#x27;t integer.

Definition at line 41794 of file td_api.h.

◆ sticker_

object_ptr<sticker> td::td_api::messagePremiumGiftCode::sticker_

A sticker to be shown in the message; may be null if unknown.

Definition at line 41798 of file td_api.h.

◆ text_

object_ptr<formattedText> td::td_api::messagePremiumGiftCode::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: