1.8 KiB
1.8 KiB
title | description | image |
---|---|---|
channelAdminRights | Admin rights | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: channelAdminRights
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 |
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];
PWRTelegram json-encoded version:
{"_": "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}
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}