class ChatMemberAdministrator implements ChatMemberInterface

Represents a chat member that has some additional privileges.

Methods

__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

string
getStatus()

The member's status in the chat, always “administrator”.

getUser()

Information about the user.

bool
getCanBeEdited()

True, if the bot is allowed to edit administrator privileges of that user.

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.

string|null
getCustomTitle()

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

Parameters

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

at line 51
string getStatus()

The member's status in the chat, always “administrator”.

Return Value

string

at line 59
User getUser()

Information about the user.

Return Value

User

at line 67
bool getCanBeEdited()

True, if the bot is allowed to edit administrator privileges of that user.

Return Value

bool

at line 75
bool getIsAnonymous()

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

Return Value

bool

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.

Return Value

bool

at line 91
bool getCanDeleteMessages()

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

Return Value

bool

at line 99
bool getCanManageVideoChats()

True, if the administrator can manage video chats.

Return Value

bool

at line 107
bool getCanRestrictMembers()

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

Return Value

bool

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

Return Value

bool

at line 123
bool getCanChangeInfo()

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

Return Value

bool

at line 131
bool getCanInviteUsers()

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

Return Value

bool

at line 139
bool|null getCanPostMessages()

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

Return Value

bool|null

at line 147
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 155
bool|null getCanPinMessages()

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

Return Value

bool|null

at line 163
bool|null getCanManageTopics()

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

Return Value

bool|null

at line 171
string|null getCustomTitle()

Optional. Custom title for this user.

Return Value

string|null