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

Inherits Object.

Description

Describes current boost status of a chat.

Public Fields

string boost_url_
 An HTTP URL, which can be used to boost the chat.
 
array< int32applied_slot_ids_
 Identifiers of boost slots of the current user applied to the chat.
 
int32 level_
 Current boost level of the chat.
 
int32 gift_code_boost_count_
 The number of boosts received by the chat from created Telegram Premium gift codes and giveaways; always 0 if the current user isn't an administrator in the chat.
 
int32 boost_count_
 The number of boosts received by the chat.
 
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.
 
array< object_ptr< prepaidGiveaway > > prepaid_giveaways_
 The list of prepaid giveaways available for the chat; only for chat administrators.
 

Public Instance Methods

 chatBoostStatus ()
 
 chatBoostStatus (string const &boost_url_, array< int32 > &&applied_slot_ids_, int32 level_, int32 gift_code_boost_count_, int32 boost_count_, int32 current_level_boost_count_, int32 next_level_boost_count_, int32 premium_member_count_, double premium_member_percentage_, array< object_ptr< prepaidGiveaway >> &&prepaid_giveaways_)
 
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 = -1050332618
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ chatBoostStatus() [1/2]

Describes current boost status of a chat.

◆ chatBoostStatus() [2/2]

chatBoostStatus ( string const &  boost_url_,
array< int32 > &&  applied_slot_ids_,
int32  level_,
int32  gift_code_boost_count_,
int32  boost_count_,
int32  current_level_boost_count_,
int32  next_level_boost_count_,
int32  premium_member_count_,
double  premium_member_percentage_,
array< object_ptr< prepaidGiveaway >> &&  prepaid_giveaways_ 
)

Describes current boost status of a chat.

Parameters
[in]boost_url_An HTTP URL, which can be used to boost the chat.
[in]applied_slot_ids_Identifiers of boost slots of the current user applied to the chat.
[in]level_Current boost level of the chat.
[in]gift_code_boost_count_The number of boosts received by the chat from created Telegram Premium gift codes and giveaways; always 0 if the current user isn't an administrator in the chat.
[in]boost_count_The number of boosts received by the chat.
[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.
[in]prepaid_giveaways_The list of prepaid giveaways available for the chat; only for chat administrators.

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: