TDLib
Loading...
Searching...
No Matches
communityAdministratorRights Class Referencefinal

Inherits Object.

Description

Describes rights of the administrator in a community.

Public Member Functions

 communityAdministratorRights ()
 communityAdministratorRights (bool can_manage_community_, bool can_change_info_, bool can_edit_chat_list_, bool can_promote_members_, bool can_ban_members_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

bool can_ban_members_
 True, if the administrator can ban, or unban community members.
bool can_change_info_
 True, if the administrator can change the community name, photo, and other settings.
bool can_edit_chat_list_
 True, if the user can change the chats added to the community.
bool can_manage_community_
 True, if the user is an administrator. Implied by any other privilege.
bool can_promote_members_
 True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ communityAdministratorRights() [1/2]

communityAdministratorRights ( )

Describes rights of the administrator in a community.

◆ communityAdministratorRights() [2/2]

communityAdministratorRights ( bool can_manage_community_,
bool can_change_info_,
bool can_edit_chat_list_,
bool can_promote_members_,
bool can_ban_members_ )

Describes rights of the administrator in a community.

Parameters
[in]can_manage_community_True, if the user is an administrator. Implied by any other privilege.
[in]can_change_info_True, if the administrator can change the community name, photo, and other settings.
[in]can_edit_chat_list_True, if the user can change the chats added to the community.
[in]can_promote_members_True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them.
[in]can_ban_members_True, if the administrator can ban, or unban community members.

Member Function 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: