From 5e77387919d1ef030b9bbf7a65675291cd5aa09a Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 26 Apr 2021 16:12:11 +0200 Subject: [PATCH] Fix empty messages don't have a chat id --- pyrogram/types/messages_and_media/message.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 6f31ec74..e96a1d10 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -2903,8 +2903,7 @@ class Message(Object, Update): log.warning(f"Users cannot send messages with Game media type. " f"chat_id: {self.chat.id}, message_id: {self.message_id}") elif self.empty: - log.warning(f"Empty messages cannot be copied. " - f"chat_id: {self.chat.id}, message_id: {self.message_id}") + log.warning(f"Empty messages cannot be copied. ") elif self.text: return await self._client.send_message( chat_id,