<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></div>
</div>
</div>
</div>
<divclass="footer_wrap">
<divclass="footer_columns_wrap footer_desktop">
<divclass="footer_column footer_column_telegram">
<h5>Telegram</h5>
<divclass="footer_telegram_description"></div>
Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.