class ChatAdministratorRights

Represents the rights of an administrator in a chat.

Methods

__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

bool
getIsAnonymous()

True, if the user's presence in the chat is hidden.

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.

bool
getCanDeleteMessages()

True, if the administrator can delete messages of other users.

bool
getCanManageVideoChats()

True, if the administrator can manage video chats.

bool
getCanRestrictMembers()

True, if the administrator can restrict, ban or unban chat members.

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).

bool
getCanChangeInfo()

True, if the user is allowed to change the chat title, photo and other settings.

bool
getCanInviteUsers()

True, if the user is allowed to invite new users to the chat.

bool|null
getCanPostMessages()

Optional. True, if the administrator can post in the channel; channels only.

bool|null
getCanEditMessages()

Optional. True, if the administrator can edit messages of other users and can pin messages; channels only.

bool|null
getCanPinMessages()

Optional. True, if the user is allowed to pin messages; groups and supergroups only.

bool|null
getCanManageTopics()

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

Parameters

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
bool|null $can_edit_messages
bool|null $can_pin_messages
bool|null $can_manage_topics

at line 43
bool getIsAnonymous()

True, if the user's presence in the chat is hidden.

Return Value

bool

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.

Return Value

bool

at line 59
bool getCanDeleteMessages()

True, if the administrator can delete messages of other users.

Return Value

bool

at line 67
bool getCanManageVideoChats()

True, if the administrator can manage video chats.

Return Value

bool

at line 75
bool getCanRestrictMembers()

True, if the administrator can restrict, ban or unban chat members.

Return Value

bool

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).

Return Value

bool

at line 91
bool getCanChangeInfo()

True, if the user is allowed to change the chat title, photo and other settings.

Return Value

bool

at line 99
bool getCanInviteUsers()

True, if the user is allowed to invite new users to the chat.

Return Value

bool

at line 107
bool|null getCanPostMessages()

Optional. True, if the administrator can post in the channel; channels only.

Return Value

bool|null

at line 115
bool|null getCanEditMessages()

Optional. True, if the administrator can edit messages of other users and can pin messages; channels only.

Return Value

bool|null

at line 123
bool|null getCanPinMessages()

Optional. True, if the user is allowed to pin messages; groups and supergroups only.

Return Value

bool|null

at line 131
bool|null getCanManageTopics()

Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only.

Return Value

bool|null