chatAdminRights

Represents the rights of an admin in a channel/supergroup.

chatAdminRights#5fb224d5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true pin_messages:flags.7?true add_admins:flags.9?true = ChatAdminRights;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
change_info flags.0?true If set, allows the admin to modify the description of the channel/supergroup
post_messages flags.1?true If set, allows the admin to post messages in the channel
edit_messages flags.2?true If set, allows the admin to also edit messages from other admins in the channel
delete_messages flags.3?true If set, allows the admin to also delete messages from other admins in the channel
ban_users flags.4?true If set, allows the admin to ban users from the channel/supergroup
invite_users flags.5?true If set, allows the admin to invite users in the channel/supergroup
pin_messages flags.7?true If set, allows the admin to pin messages in the channel/supergroup
add_admins flags.9?true If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup

Type

ChatAdminRights

Related pages

Channels

How to handle channels, supergroups, groups, and what's the difference between them.