From 35ec32891342998e1aff125873a80817b5567487 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 30 Aug 2020 11:23:42 +0200 Subject: [PATCH] Update message.py --- pyrogram/client/types/messages_and_media/message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/types/messages_and_media/message.py b/pyrogram/client/types/messages_and_media/message.py index c6d58de3..9a8d57a9 100644 --- a/pyrogram/client/types/messages_and_media/message.py +++ b/pyrogram/client/types/messages_and_media/message.py @@ -2687,9 +2687,9 @@ class Message(Object, Update): """ if as_copy: if self.service: - log.warning("Unable to copy service messages, message_id: {} from chat.id: {}".format(self.message_id, self.chat.id)) + log.warning(f"Service messages cannot be copied. chat_id: {self.chat.id}, message_id: {self.message_id}") elif self.game and not self._client.is_bot: - log.warning("Users cannot send messages with Game media type, message_id: {} from chat.id: {}".format(self.message_id, self.chat.id)) + log.warning(f"Users cannot send messages with Game media type. chat_id: {self.chat.id}, message_id: {self.message_id}") elif self.text: return self._client.send_message( chat_id,