mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-02 07:15:23 +00:00
Fix empty messages don't have a chat id
This commit is contained in:
@@ -2903,8 +2903,7 @@ class Message(Object, Update):
|
|||||||
log.warning(f"Users cannot send messages with Game media type. "
|
log.warning(f"Users cannot send messages with Game media type. "
|
||||||
f"chat_id: {self.chat.id}, message_id: {self.message_id}")
|
f"chat_id: {self.chat.id}, message_id: {self.message_id}")
|
||||||
elif self.empty:
|
elif self.empty:
|
||||||
log.warning(f"Empty messages cannot be copied. "
|
log.warning(f"Empty messages cannot be copied. ")
|
||||||
f"chat_id: {self.chat.id}, message_id: {self.message_id}")
|
|
||||||
elif self.text:
|
elif self.text:
|
||||||
return await self._client.send_message(
|
return await self._client.send_message(
|
||||||
chat_id,
|
chat_id,
|
||||||
|
Reference in New Issue
Block a user