TDLib
Loading...
Searching...
No Matches
td::td_api::chatBoostStatus Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 chatBoostStatus ()
 
 chatBoostStatus (string const &boost_url_, bool is_boosted_, int32 level_, int32 boost_count_, int32 current_level_boost_count_, int32 next_level_boost_count_, int32 premium_member_count_, double premium_member_percentage_)
 
std::int32_t get_id () const final
 
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

string boost_url_
 An HTTP URL, which can be used to boost the chat.
 
bool is_boosted_
 True, if the current user has already boosted the chat.
 
int32 level_
 Current boost level of the chat.
 
int32 boost_count_
 The number of times the chat was boosted.
 
int32 current_level_boost_count_
 The number of boosts added to reach the current level.
 
int32 next_level_boost_count_
 The number of boosts needed to reach the next level; 0 if the next level isn't available.
 
int32 premium_member_count_
 Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.
 
double premium_member_percentage_
 A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.
 

Static Public Attributes

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

Detailed Description

Describes current boost status of a chat.

Constructor & Destructor Documentation

◆ chatBoostStatus() [1/2]

td::td_api::chatBoostStatus::chatBoostStatus ( )

Describes current boost status of a chat.

◆ chatBoostStatus() [2/2]

td::td_api::chatBoostStatus::chatBoostStatus ( string const &  boost_url_,
bool  is_boosted_,
int32  level_,
int32  boost_count_,
int32  current_level_boost_count_,
int32  next_level_boost_count_,
int32  premium_member_count_,
double  premium_member_percentage_ 
)

Describes current boost status of a chat.

Parameters
[in]boost_url_An HTTP URL, which can be used to boost the chat.
[in]is_boosted_True, if the current user has already boosted the chat.
[in]level_Current boost level of the chat.
[in]boost_count_The number of times the chat was boosted.
[in]current_level_boost_count_The number of boosts added to reach the current level.
[in]next_level_boost_count_The number of boosts needed to reach the next level; 0 if the next level isn't available.
[in]premium_member_count_Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.
[in]premium_member_percentage_A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::chatBoostStatus::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::chatBoostStatus::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.


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