ChatAdministratorRights
class ChatAdministratorRights
Represents the rights of an administrator in a chat.
Methods
No description
True, if the user's presence in the chat is hidden.
True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege.
True, if the administrator can delete messages of other users.
True, if the administrator can manage video chats.
True, if the administrator can restrict, ban or unban chat members.
True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user).
True, if the user is allowed to change the chat title, photo and other settings.
True, if the user is allowed to invite new users to the chat.
Optional. True, if the administrator can post in the channel; channels only.
Optional. True, if the administrator can edit messages of other users and can pin messages; channels only.
Optional. True, if the user is allowed to pin messages; groups and supergroups only.
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only.
Details
at line 24
__construct(bool $is_anonymous, bool $can_manage_chat, bool $can_delete_messages, bool $can_manage_video_chats, bool $can_restrict_members, bool $can_promote_members, bool $can_change_info, bool $can_invite_users, bool|null $can_post_messages = null, bool|null $can_edit_messages = null, bool|null $can_pin_messages = null, bool|null $can_manage_topics = null)
No description
at line 43
bool
getIsAnonymous()
True, if the user's presence in the chat is hidden.
at line 51
bool
getCanManageChat()
True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege.
at line 59
bool
getCanDeleteMessages()
True, if the administrator can delete messages of other users.
at line 67
bool
getCanManageVideoChats()
True, if the administrator can manage video chats.
at line 75
bool
getCanRestrictMembers()
True, if the administrator can restrict, ban or unban chat members.
at line 83
bool
getCanPromoteMembers()
True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user).
at line 91
bool
getCanChangeInfo()
True, if the user is allowed to change the chat title, photo and other settings.
at line 99
bool
getCanInviteUsers()
True, if the user is allowed to invite new users to the chat.
at line 107
bool|null
getCanPostMessages()
Optional. True, if the administrator can post in the channel; channels only.
at line 115
bool|null
getCanEditMessages()
Optional. True, if the administrator can edit messages of other users and can pin messages; channels only.
at line 123
bool|null
getCanPinMessages()
Optional. True, if the user is allowed to pin messages; groups and supergroups only.
at line 131
bool|null
getCanManageTopics()
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only.