tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::chatBoostStatus Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::chatBoostStatus:
td::td_api::Object td::TlObject

Public Member Functions

 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 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.
 
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&#x27;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&#x27;t available.
 
int32 premium_member_count_
 Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn&#x27;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&#x27;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.
 

Static Public Attributes

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

Detailed Description

Describes current boost status of a chat.

Definition at line 10451 of file td_api.h.

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_,
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&#x27;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&#x27;t available.
[in]premium_member_count_Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn&#x27;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&#x27;t an administrator in the chat.
[in]prepaid_giveaways_The list of prepaid giveaways available for the chat; only for chat administrators.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ applied_slot_ids_

array<int32> td::td_api::chatBoostStatus::applied_slot_ids_

Identifiers of boost slots of the current user applied to the chat.

Definition at line 10464 of file td_api.h.

◆ boost_count_

int32 td::td_api::chatBoostStatus::boost_count_

The number of boosts received by the chat.

Definition at line 10470 of file td_api.h.

◆ boost_url_

string td::td_api::chatBoostStatus::boost_url_

An HTTP URL, which can be used to boost the chat.

Definition at line 10462 of file td_api.h.

◆ current_level_boost_count_

int32 td::td_api::chatBoostStatus::current_level_boost_count_

The number of boosts added to reach the current level.

Definition at line 10472 of file td_api.h.

◆ gift_code_boost_count_

int32 td::td_api::chatBoostStatus::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&#x27;t an administrator in the chat.

Definition at line 10468 of file td_api.h.

◆ ID

const std::int32_t td::td_api::chatBoostStatus::ID = -1050332618
static

Identifier uniquely determining a type of the object.

Definition at line 10504 of file td_api.h.

◆ level_

int32 td::td_api::chatBoostStatus::level_

Current boost level of the chat.

Definition at line 10466 of file td_api.h.

◆ next_level_boost_count_

int32 td::td_api::chatBoostStatus::next_level_boost_count_

The number of boosts needed to reach the next level; 0 if the next level isn&#x27;t available.

Definition at line 10474 of file td_api.h.

◆ premium_member_count_

int32 td::td_api::chatBoostStatus::premium_member_count_

Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn&#x27;t an administrator in the chat.

Definition at line 10476 of file td_api.h.

◆ premium_member_percentage_

double td::td_api::chatBoostStatus::premium_member_percentage_

A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn&#x27;t an administrator in the chat.

Definition at line 10478 of file td_api.h.

◆ prepaid_giveaways_

array<object_ptr<prepaidGiveaway> > td::td_api::chatBoostStatus::prepaid_giveaways_

The list of prepaid giveaways available for the chat; only for chat administrators.

Definition at line 10480 of file td_api.h.


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