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}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.