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

Inherits Object.

Description

Contains information about Telegram Stars earned by a bot or a chat.

Public Fields

int53 total_count_
 Total number of Telegram Stars earned.
 
int53 current_count_
 The number of Telegram Stars that aren't withdrawn yet.
 
int53 available_count_
 The number of Telegram Stars that are available for withdrawal.
 
bool withdrawal_enabled_
 True, if Telegram Stars can be withdrawn now or later.
 
int32 next_withdrawal_in_
 Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.
 

Public Instance Methods

 starRevenueStatus ()
 
 starRevenueStatus (int53 total_count_, int53 current_count_, int53 available_count_, bool withdrawal_enabled_, int32 next_withdrawal_in_)
 
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 = -396634629
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ starRevenueStatus() [1/2]

Contains information about Telegram Stars earned by a bot or a chat.

◆ starRevenueStatus() [2/2]

starRevenueStatus ( int53  total_count_,
int53  current_count_,
int53  available_count_,
bool  withdrawal_enabled_,
int32  next_withdrawal_in_ 
)

Contains information about Telegram Stars earned by a bot or a chat.

Parameters
[in]total_count_Total number of Telegram Stars earned.
[in]current_count_The number of Telegram Stars that aren't withdrawn yet.
[in]available_count_The number of Telegram Stars that are available for withdrawal.
[in]withdrawal_enabled_True, if Telegram Stars can be withdrawn now or later.
[in]next_withdrawal_in_Time left before the next withdrawal can be started, in seconds; 0 if withdrawal can be started now.

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: