Link Search Menu Expand Document

Constructor: chatAdminRights

Back to constructors index

Represents the rights of an admin in a channel/supergroup.

Attributes:

NameTypeRequiredDescription
change_infoBoolOptionalIf set, allows the admin to modify the description of the channel/supergroup
post_messagesBoolOptionalIf set, allows the admin to post messages in the channel
edit_messagesBoolOptionalIf set, allows the admin to also edit messages from other admins in the channel
delete_messagesBoolOptionalIf set, allows the admin to also delete messages from other admins in the channel
ban_usersBoolOptionalIf set, allows the admin to ban users from the channel/supergroup
invite_usersBoolOptionalIf set, allows the admin to invite users in the channel/supergroup
pin_messagesBoolOptionalIf set, allows the admin to pin messages in the channel/supergroup
add_adminsBoolOptionalIf set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup
anonymousBoolOptionalWhether this admin is anonymous
manage_callBoolOptionalIf set, allows the admin to change group call/livestream settings
otherBoolOptionalSet this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat admin log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode.
manage_topicsBoolOptionalIf set, allows the admin to create, delete or modify forum topics ».
post_storiesBoolOptionalIf set, allows the admin to post stories as the channel.
edit_storiesBoolOptionalIf set, allows the admin to edit stories posted by the other admins of the channel.
delete_storiesBoolOptionalIf set, allows the admin to delete stories posted by the other admins of the channel.

Type: ChatAdminRights

Example:

$chatAdminRights = ['_' => 'chatAdminRights', 'change_info' => Bool, 'post_messages' => Bool, 'edit_messages' => Bool, 'delete_messages' => Bool, 'ban_users' => Bool, 'invite_users' => Bool, 'pin_messages' => Bool, 'add_admins' => Bool, 'anonymous' => Bool, 'manage_call' => Bool, 'other' => Bool, 'manage_topics' => Bool, 'post_stories' => Bool, 'edit_stories' => Bool, 'delete_stories' => Bool];