From 3a911956b064372c79c9856c2115909f946e4269 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 31 Jan 2022 20:45:04 +0100 Subject: [PATCH] Update message for automatic sleeps --- pyrogram/session/session.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index c156c953..05d1fd4a 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -366,7 +366,8 @@ class Session: if amount > sleep_threshold >= 0: raise - log.warning(f'[{self.client.session_name}] Sleeping for {amount}s (required by "{query}")') + log.warning(f'[{self.client.session_name}] Waiting for {amount} seconds before continuing ' + f'(required by "{query}")') await asyncio.sleep(amount) except (OSError, TimeoutError, InternalServerError, ServiceUnavailable) as e: