MadelineProtoDocs/old_docs/API_docs_v89/constructors/channelAdminRights.md

1.6 KiB

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

Constructor: channelAdminRights

Back to constructors index

Admin rights

Attributes:

Name Type Required Description
change_info Bool Optional Change info
post_messages Bool Optional Post messages
edit_messages Bool Optional Edit messages
delete_messages Bool Optional Delete messages
ban_users Bool Optional Ban users
invite_users Bool Optional Invite users
invite_link Bool Optional Generate an invite link
pin_messages Bool Optional Pin messages
add_admins Bool Optional Add other admins
manage_call Bool Optional Manage group calls

Type: ChannelAdminRights

Example:

$channelAdminRights = ['_' => 'channelAdminRights', 'change_info' => Bool, 'post_messages' => Bool, 'edit_messages' => Bool, 'delete_messages' => Bool, 'ban_users' => Bool, 'invite_users' => Bool, 'invite_link' => Bool, 'pin_messages' => Bool, 'add_admins' => Bool, 'manage_call' => Bool];

Or, if you're into Lua:

channelAdminRights={_='channelAdminRights', change_info=Bool, post_messages=Bool, edit_messages=Bool, delete_messages=Bool, ban_users=Bool, invite_users=Bool, invite_link=Bool, pin_messages=Bool, add_admins=Bool, manage_call=Bool}