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

Inherits td::td_api::Object.

Public Member Functions

 basicGroup ()
 
 basicGroup (int53 id_, int32 member_count_, object_ptr< ChatMemberStatus > &&status_, bool is_active_, int53 upgraded_to_supergroup_id_)
 
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

int53 id_
 Group identifier.
 
int32 member_count_
 Number of members in the group.
 
object_ptr< ChatMemberStatusstatus_
 Status of the current user in the group.
 
bool is_active_
 True, if the group is active.
 
int53 upgraded_to_supergroup_id_
 Identifier of the supergroup to which this group was upgraded; 0 if none.
 

Static Public Attributes

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

Detailed Description

Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users).

Constructor & Destructor Documentation

◆ basicGroup() [1/2]

td::td_api::basicGroup::basicGroup ( )

Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users).

◆ basicGroup() [2/2]

td::td_api::basicGroup::basicGroup ( int53  id_,
int32  member_count_,
object_ptr< ChatMemberStatus > &&  status_,
bool  is_active_,
int53  upgraded_to_supergroup_id_ 
)

Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users).

Parameters
[in]id_Group identifier.
[in]member_count_Number of members in the group.
[in]status_Status of the current user in the group.
[in]is_active_True, if the group is active.
[in]upgraded_to_supergroup_id_Identifier of the supergroup to which this group was upgraded; 0 if none.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

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