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 anonymous:flags.10?true manage_call:flags.11?true other:flags.12?true = ChatAdminRights;
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 |
anonymous | flags.10?true | Whether this admin is anonymous |
manage_call | flags.11?true | If set, allows the admin to change group call/livestream settings |
other | flags.12?true | Set this flag if none of the other flags are set, but you still want the user to be an admin. |
How to handle channels, supergroups, gigagroups, legacy groups, and what's the difference between them.