toggle_connected_bot_paused()

async Client.toggle_connected_bot_paused()

Pause or unpause a specific chat, temporarily disconnecting it from all business bots.

Usable by Users Bots
Parameters:
  • peer (int | str | InputPeer) – The chat to pause or unpause.

  • paused (bool) – Whether to pause or unpause the chat.

Returns:

bool – On success, True is returned.