Inherits ChatMemberStatus.
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 emojis; applicable to supergroups only. | |
bool | can_be_edited_ |
True, if the current user can edit the administrator privileges for the called user. | |
bool | can_manage_chat_ |
True, if the administrator can get chat event log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups 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; 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; always true for channels. | |
bool | can_pin_messages_ |
True, if the administrator can pin messages; applicable to basic groups and 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 | 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 | |
chatMemberStatusAdministrator () | |
chatMemberStatusAdministrator (string const &custom_title_, bool can_be_edited_, 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_promote_members_, bool can_manage_video_chats_, bool is_anonymous_) | |
std::int32_t | get_id () const final |
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 | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = 82243562 |
Identifier uniquely determining a type of the object. | |
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 | ( | string const & | custom_title_, |
bool | can_be_edited_, | ||
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_promote_members_, | ||
bool | can_manage_video_chats_, | ||
bool | is_anonymous_ | ||
) |
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.
[in] | custom_title_ | A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only. |
[in] | can_be_edited_ | True, if the current user can edit the administrator privileges for the called user. |
[in] | can_manage_chat_ | True, if the administrator can get chat event log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups 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; 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; always true for channels. |
[in] | can_pin_messages_ | True, if the administrator can pin messages; applicable to basic groups and 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] | is_anonymous_ | True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only. |
|
inlinefinalvirtual |
|
finalvirtual |