EditAdmin

class pyrogram.raw.functions.channels.EditAdmin

Modify the admin rights of a user in a supergroup/channel.

Details
  • Layer: 126

  • ID: 0xd33c8902

Parameters
  • channel (InputChannel) – The supergroup/channel.

  • user_id (InputUser) – The ID of the user whose admin rights should be modified.

  • admin_rights (ChatAdminRights) – The admin rights.

  • rank (str) – Indicates the role (rank) of the admin in the group: just an arbitrary string.

Returns

Updates – Object which is perceived by the client without a call on its part when an event occurs.