<p><ahref="/api/channel">Channels and supergroups</a> allow setting <ahref="https://telegram.org/blog/permissions-groups-undo">granular permissions</a> both for admins and specific users.
<ahref="/api/channel">Channels, supergroups and basic groups</a> also allow setting global granular permissions for users.</p>
<p><ahref="/method/channels.editAdmin">channels.editAdmin</a> can be used to modify the admin rights of a user in a channel or supergroup.
<ahref="/api/channel#basic-groups">Basic groups</a> do not allow setting granular admin permissions, <ahref="/method/messages.editChatAdmin">messages.editChatAdmin</a> has to be used, instead.</p>
<p>Permissions are defined by the <ahref="/constructor/chatAdminRights">chatAdminRights</a> constructor, some admin rights can only be used for channels, others both for channels and supergroups (see the constructor page).</p>
<p><ahref="/method/channels.editBanned">channels.editBanned</a> can be used to modify the rights of a user in a channel or supergroup, to ban/kick a user from the group, or restrict the user from doing certain things.
<ahref="/api/channel#basic-groups">Basic groups</a> do not allow setting granular user permissions for single users, single users can only be removed from groups using <ahref="/method/messages.deleteChatUser">messages.deleteChatUser</a>: however, setting <ahref="#default-rights">global granular permissions with basic groups is supported</a>.</p>
<p>Permissions are defined by the <ahref="/constructor/chatBannedRights">chatBannedRights</a> constructor, for more info see the constructor page.</p>
<p><ahref="/method/messages.editChatDefaultBannedRights">messages.editChatDefaultBannedRights</a> can be used to modify the rights of <strong>all</strong> users in a <ahref="/api/channel#channels">channel</a>, <ahref="/api/channel#supergroups">supergroup</a> or <ahref="/api/channel#basic-groups">basic group</a>, to restrict them from doing certain things.</p>
<p>Permissions are defined by the <ahref="/constructor/chatBannedRights">chatBannedRights</a> constructor: all flags can be used except for <code>view_messages</code>, for more info see the constructor page.</p>
<p><ahref="/api/bots">Bots</a> can suggest a set of admin rights when being added to groups and channels. </p>
<p>Bots can use <ahref="/method/bots.setBotBroadcastDefaultAdminRights">bots.setBotBroadcastDefaultAdminRights</a> to indicate a suggested set of <ahref="/api/rights">admin rights »</a> to use when adding the bot to a <ahref="/api/channel">channel</a>, and <ahref="/method/bots.setBotGroupDefaultAdminRights">bots.setBotGroupDefaultAdminRights</a> when adding the bot to a <ahref="/api/channel">group</a>. </p>
<p>These suggested admin rights are contained in the <code>bot_broadcast_admin_rights</code> and <code>bot_group_admin_rights</code> paremeters of <ahref="/constructor/userFull">userFull</a>, obtainable using <ahref="/method/users.getFullUser">users.getFullUser</a>. </p>
<p>A client application trying to add a bot as admin should fetch the default rights and present them as editable defaults to the user: the rights can then be modified before <ahref="#admin-rights">setting the bot as admin</a>.</p>
<p>Note that admin rights suggested by a <ahref="/api/links#group-channel-bot-links">bot deep link</a> take priority over the suggested rights specified by <code>bot_broadcast_admin_rights</code> and <code>bot_group_admin_rights</code>: they can still be modified by the user before setting the bot as admin.</p></div>