Constructor: chatAdminRights

Back to constructors index

Admin rights

Attributes:

Name Type Required Description
change_info Bool Optional Can change info?
post_messages Bool Optional Can post messages?
edit_messages Bool Optional Can edit messages?
delete_messages Bool Optional Can delete messages?
ban_users Bool Optional Can ban users?
invite_users Bool Optional Can invite users?
pin_messages Bool Optional Can pin messages?
add_admins Bool Optional Can add other admins?

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.