MadelineProtoDocs/old_docs/API_docs_v97/constructors/chatAdminRights.md
2019-12-27 17:48:04 +01:00

2.4 KiB

title description image
chatAdminRights Represents the rights of an admin in a [channel/supergroup](https://core.telegram.org/api/channel). https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: chatAdminRights

Back to constructors index

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

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];

Or, if you're into Lua:

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}