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

Inherits Object.

Description

Describes rights of the administrator.

Public Member Functions

 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 can_manage_direct_messages_, bool can_manage_tags_, bool is_anonymous_)
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_change_info_
 True, if the administrator can change the chat title, photo, and other settings.
bool can_delete_messages_
 True, if the administrator can delete messages of other users.
bool can_delete_stories_
 True, if the administrator can delete stories posted by other users; applicable to supergroups and 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_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_invite_users_
 True, if the administrator can invite new users to the chat.
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, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other privilege; applicable to supergroups and channels only.
bool can_manage_direct_messages_
 True, if the administrator can answer to channel direct messages; applicable to channels only.
bool can_manage_tags_
 True, if the administrator can change tags of other users; 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_manage_video_chats_
 True, if the administrator can manage video chats.
bool can_pin_messages_
 True, if the administrator can pin messages; applicable to basic groups and supergroups only.
bool can_post_messages_
 True, if the administrator can create channel posts, approve suggested channel posts, or view channel statistics; applicable to channels only.
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_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; applicable to supergroups and channels only.
bool can_restrict_members_
 True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics.
bool is_anonymous_
 True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ chatAdministratorRights() [1/2]

chatAdministratorRights ( )

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 can_manage_direct_messages_,
bool can_manage_tags_,
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, ignore slow mode, and send messages to the chat without paying Telegram Stars. 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, approve suggested 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.
[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; applicable to supergroups and channels only.
[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]can_manage_direct_messages_True, if the administrator can answer to channel direct messages; applicable to channels only.
[in]can_manage_tags_True, if the administrator can change tags of other users; applicable to basic groups and supergroups only.
[in]is_anonymous_True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.

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: