ChatAdminRights#

class pyrogram.raw.types.ChatAdminRights#

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

Constructor of ChatAdminRights.

Details:
  • Layer: 158

  • ID: 5FB224D5

Parameters:
  • change_info (bool, optional) – If set, allows the admin to modify the description of the channel/supergroup.

  • post_messages (bool, optional) – If set, allows the admin to post messages in the channel.

  • edit_messages (bool, optional) – If set, allows the admin to also edit messages from other admins in the channel.

  • delete_messages (bool, optional) – If set, allows the admin to also delete messages from other admins in the channel.

  • ban_users (bool, optional) – If set, allows the admin to ban users from the channel/supergroup.

  • invite_users (bool, optional) – If set, allows the admin to invite users in the channel/supergroup.

  • pin_messages (bool, optional) – If set, allows the admin to pin messages in the channel/supergroup.

  • add_admins (bool, optional) – If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup.

  • anonymous (bool, optional) – Whether this admin is anonymous.

  • manage_call (bool, optional) – If set, allows the admin to change group call/livestream settings.

  • other (bool, optional) – Set this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat admin log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode.

  • manage_topics (bool, optional) – If set, allows the admin to create, delete or modify forum topics.