Fix empty messages don't have a chat id
This commit is contained in:
parent
e4f99df07c
commit
5e77387919
@ -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 New Issue
Block a user