ChatAdminRights

class pyrogram.raw.types.ChatAdminRights

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

Constructor of ChatAdminRights.

Details:
  • Layer: 136

  • ID: 0x5fb224d5

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 stil want the user to be an admin.