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

object_ptr< starAmounttotal_amount_
 Total amount of Telegram Stars earned.
 
object_ptr< starAmountcurrent_amount_
 The amount of Telegram Stars that aren't withdrawn yet.
 
object_ptr< starAmountavailable_amount_
 The amount 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 (object_ptr< starAmount > &&total_amount_, object_ptr< starAmount > &&current_amount_, object_ptr< starAmount > &&available_amount_, 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 = 2006266600
 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 ( object_ptr< starAmount > &&  total_amount_,
object_ptr< starAmount > &&  current_amount_,
object_ptr< starAmount > &&  available_amount_,
bool  withdrawal_enabled_,
int32  next_withdrawal_in_ 
)

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

Parameters
[in]total_amount_Total amount of Telegram Stars earned.
[in]current_amount_The amount of Telegram Stars that aren't withdrawn yet.
[in]available_amount_The amount 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: