TDLib
|
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 | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (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. | |
Describes current boost status of a chat.
td::td_api::chatBoostStatus::chatBoostStatus | ( | ) |
Describes current boost status of a chat.
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.
[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. |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
Implements td::TlObject.
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
[in] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.