set_bot_updates_status()

async Client.set_bot_updates_status()

Informs the server about the number of pending bot updates if they haven’t been processed for a long time (bots only).

Usable by Users Bots
Parameters:
  • pending_updates_count (int) – Number of pending updates.

  • message (str) – Error message, if present.

Returns:

bool – True on success.

Example

await app.set_bot_updates_status(5, "Slow processing")