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

Inherits Object.

Description

Describes rights of the administrator.

Public Fields

bool can_manage_chat_
 True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only.
 
bool can_change_info_
 True, if the administrator can change the chat title, photo, and other settings.
 
bool can_post_messages_
 True, if the administrator can create channel posts or view channel statistics; applicable to channels only.
 
bool can_edit_messages_
 True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
 
bool can_delete_messages_
 True, if the administrator can delete messages of other users.
 
bool can_invite_users_
 True, if the administrator can invite new users to the chat.
 
bool can_restrict_members_
 True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics; always true for channels.
 
bool can_pin_messages_
 True, if the administrator can pin messages; applicable to basic groups and supergroups only.
 
bool can_manage_topics_
 True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only.
 
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.
 
bool can_manage_video_chats_
 True, if the administrator can manage video chats.
 
bool can_post_stories_
 True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only.
 
bool can_edit_stories_
 True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only.
 
bool can_delete_stories_
 True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only.
 
bool is_anonymous_
 True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
 

Public Instance Methods

 chatAdministratorRights ()
 
 chatAdministratorRights (bool can_manage_chat_, bool can_change_info_, bool can_post_messages_, bool can_edit_messages_, bool can_delete_messages_, bool can_invite_users_, bool can_restrict_members_, bool can_pin_messages_, bool can_manage_topics_, bool can_promote_members_, bool can_manage_video_chats_, bool can_post_stories_, bool can_edit_stories_, bool can_delete_stories_, bool is_anonymous_)
 
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 = 1599049796
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ chatAdministratorRights() [1/2]

Describes rights of the administrator.

◆ chatAdministratorRights() [2/2]

chatAdministratorRights ( bool  can_manage_chat_,
bool  can_change_info_,
bool  can_post_messages_,
bool  can_edit_messages_,
bool  can_delete_messages_,
bool  can_invite_users_,
bool  can_restrict_members_,
bool  can_pin_messages_,
bool  can_manage_topics_,
bool  can_promote_members_,
bool  can_manage_video_chats_,
bool  can_post_stories_,
bool  can_edit_stories_,
bool  can_delete_stories_,
bool  is_anonymous_ 
)

Describes rights of the administrator.

Parameters
[in]can_manage_chat_True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only.
[in]can_change_info_True, if the administrator can change the chat title, photo, and other settings.
[in]can_post_messages_True, if the administrator can create channel posts or view channel statistics; applicable to channels only.
[in]can_edit_messages_True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
[in]can_delete_messages_True, if the administrator can delete messages of other users.
[in]can_invite_users_True, if the administrator can invite new users to the chat.
[in]can_restrict_members_True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics; always true for channels.
[in]can_pin_messages_True, if the administrator can pin messages; applicable to basic groups and supergroups only.
[in]can_manage_topics_True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only.
[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_manage_video_chats_True, if the administrator can manage video chats.
[in]can_post_stories_True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only.
[in]can_edit_stories_True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only.
[in]can_delete_stories_True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only.
[in]is_anonymous_True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.

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: