channels.EditAdmin#

class pyrogram.raw.functions.channels.EditAdmin#

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

Details:
  • Layer: 158

  • ID: D33C8902

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