toggle_participants_hidden()

async Client.toggle_participants_hidden()

Toggle whether participant list is hidden.

Usable by Users Bots
Parameters:
  • enabled (bool, *optional*) – Whether participants are hidden

  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

Returns:

Message

Example

await app.toggle_participants_hidden(chat_id, ...)