ChatMemberAdministrator
class ChatMemberAdministrator implements ChatMemberInterface
Represents a chat member that has some additional privileges.
Methods
No description
The member's status in the chat, always “administrator”.
True, if the bot is allowed to edit administrator privileges of that user.
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.
Optional. Custom title for this user.
Details
at line 28
__construct(string $status, User $user, bool $can_be_edited, 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, string|null $custom_title = null)
No description
at line 51
string
getStatus()
The member's status in the chat, always “administrator”.
at line 59
User
getUser()
Information about the user.
at line 67
bool
getCanBeEdited()
True, if the bot is allowed to edit administrator privileges of that user.
at line 75
bool
getIsAnonymous()
True, if the user's presence in the chat is hidden.
at line 83
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 91
bool
getCanDeleteMessages()
True, if the administrator can delete messages of other users.
at line 99
bool
getCanManageVideoChats()
True, if the administrator can manage video chats.
at line 107
bool
getCanRestrictMembers()
True, if the administrator can restrict, ban or unban chat members.
at line 115
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 123
bool
getCanChangeInfo()
True, if the user is allowed to change the chat title, photo and other settings.
at line 131
bool
getCanInviteUsers()
True, if the user is allowed to invite new users to the chat.
at line 139
bool|null
getCanPostMessages()
Optional. True, if the administrator can post in the channel; channels only.
at line 147
bool|null
getCanEditMessages()
Optional. True, if the administrator can edit messages of other users and can pin messages; channels only.
at line 155
bool|null
getCanPinMessages()
Optional. True, if the user is allowed to pin messages; groups and supergroups only.
at line 163
bool|null
getCanManageTopics()
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only.
at line 171
string|null
getCustomTitle()
Optional. Custom title for this user.