MadelineProtoDocs/docs/API_docs/constructors/chatAdminRights.md
2019-03-08 14:35:09 +01:00

1.7 KiB

title description image
chatAdminRights Admin rights https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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

PWRTelegram json-encoded version:

{"_": "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}