diff --git a/pyrogram/client/methods/chats/get_chat_members.py b/pyrogram/client/methods/chats/get_chat_members.py index a8ae4054..6be3408b 100644 --- a/pyrogram/client/methods/chats/get_chat_members.py +++ b/pyrogram/client/methods/chats/get_chat_members.py @@ -153,7 +153,7 @@ class GetChatMembers(BaseClient): return pyrogram.List(pyrogram.ChatMember._parse(self, member, users) for member in members) except FloodWait as e: - log.warning("Sleeping for {}s".format(e.x)) + log.warning("[{}] Sleeping for {}s".format(self.session_name, e.x)) time.sleep(e.x) else: raise ValueError("The chat_id \"{}\" belongs to a user".format(chat_id)) diff --git a/pyrogram/client/methods/chats/get_dialogs.py b/pyrogram/client/methods/chats/get_dialogs.py index 6234538b..ea2eec63 100644 --- a/pyrogram/client/methods/chats/get_dialogs.py +++ b/pyrogram/client/methods/chats/get_dialogs.py @@ -82,7 +82,7 @@ class GetDialogs(BaseClient): ) ) except FloodWait as e: - log.warning("Sleeping {}s".format(e.x)) + log.warning("[{}] Sleeping for {}s".format(self.session_name, e.x)) time.sleep(e.x) else: break diff --git a/pyrogram/client/methods/messages/get_history.py b/pyrogram/client/methods/messages/get_history.py index bf348ac9..7741340c 100644 --- a/pyrogram/client/methods/messages/get_history.py +++ b/pyrogram/client/methods/messages/get_history.py @@ -103,7 +103,7 @@ class GetHistory(BaseClient): ) ) except FloodWait as e: - log.warning("Sleeping for {}s".format(e.x)) + log.warning("[{}] Sleeping for {}s".format(self.session_name, e.x)) time.sleep(e.x) else: break diff --git a/pyrogram/client/methods/messages/get_messages.py b/pyrogram/client/methods/messages/get_messages.py index a18d84c2..f3e53b94 100644 --- a/pyrogram/client/methods/messages/get_messages.py +++ b/pyrogram/client/methods/messages/get_messages.py @@ -116,7 +116,7 @@ class GetMessages(BaseClient): try: r = self.send(rpc) except FloodWait as e: - log.warning("Sleeping for {}s".format(e.x)) + log.warning("[{}] Sleeping for {}s".format(self.session_name, e.x)) time.sleep(e.x) else: break diff --git a/pyrogram/client/methods/messages/send_media_group.py b/pyrogram/client/methods/messages/send_media_group.py index 055c7b7c..725a8a84 100644 --- a/pyrogram/client/methods/messages/send_media_group.py +++ b/pyrogram/client/methods/messages/send_media_group.py @@ -195,7 +195,7 @@ class SendMediaGroup(BaseClient): ) ) except FloodWait as e: - log.warning("Sleeping for {}s".format(e.x)) + log.warning("[{}] Sleeping for {}s".format(self.session_name, e.x)) time.sleep(e.x) else: break