mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix empty messages don't have a chat id
This commit is contained in:
parent
e4f99df07c
commit
5e77387919
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue