Fix empty messages don't have a chat id

This commit is contained in:
Dan 2021-04-26 16:12:11 +02:00
parent e4f99df07c
commit 5e77387919

View File

@ -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,