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

Inherits ChatMemberStatus.

Description

The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges.

Public Fields

string custom_title_
 A custom title of the administrator; 0-16 characters without emoji; applicable to supergroups only.
 
bool can_be_edited_
 True, if the current user can edit the administrator privileges for the called user.
 
object_ptr< chatAdministratorRightsrights_
 Rights of the administrator.
 

Public Instance Methods

 chatMemberStatusAdministrator ()
 
 chatMemberStatusAdministrator (string const &custom_title_, bool can_be_edited_, object_ptr< chatAdministratorRights > &&rights_)
 
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 = -70024163
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ chatMemberStatusAdministrator() [1/2]

The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges.

◆ chatMemberStatusAdministrator() [2/2]

chatMemberStatusAdministrator ( string const &  custom_title_,
bool  can_be_edited_,
object_ptr< chatAdministratorRights > &&  rights_ 
)

The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges.

Parameters
[in]custom_title_A custom title of the administrator; 0-16 characters without emoji; applicable to supergroups only.
[in]can_be_edited_True, if the current user can edit the administrator privileges for the called user.
[in]rights_Rights of the administrator.

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: