mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
3.9 KiB
3.9 KiB
title | description | nav_exclude | image |
---|---|---|---|
chatAdminRights | Represents the rights of an admin in a channel/supergroup. | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: chatAdminRights
Represents the rights of an admin in a channel/supergroup.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
change_info | Bool | Optional | If set, allows the admin to modify the description of the channel/supergroup |
post_messages | Bool | Optional | If set, allows the admin to post messages in the channel |
edit_messages | Bool | Optional | If set, allows the admin to also edit messages from other admins in the channel |
delete_messages | Bool | Optional | If set, allows the admin to also delete messages from other admins in the channel |
ban_users | Bool | Optional | If set, allows the admin to ban users from the channel/supergroup |
invite_users | Bool | Optional | If set, allows the admin to invite users in the channel/supergroup |
pin_messages | Bool | Optional | If set, allows the admin to pin messages in the channel/supergroup |
add_admins | Bool | Optional | If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup |
anonymous | Bool | Optional | Whether this admin is anonymous |
manage_call | Bool | Optional | If set, allows the admin to change group call/livestream settings |
other | Bool | Optional | Set 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_topics | Bool | Optional | If set, allows the admin to create, delete or modify forum topics ». |
post_stories | Bool | Optional | If set, allows the admin to post stories as the channel. |
edit_stories | Bool | Optional | If set, allows the admin to edit stories posted by the other admins of the channel. |
delete_stories | Bool | Optional | If 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];