From 1699ef0d4c6ed9f3e986e703de6680107e4e0bc0 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 15 Nov 2022 11:13:53 +0100 Subject: [PATCH] Disable parse mode when copying messages The entities are already taken from the original message --- pyrogram/types/messages_and_media/message.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 5ea1584d..eb9d654f 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -3057,6 +3057,7 @@ class Message(Object, Update): chat_id, text=self.text, entities=self.entities, + parse_mode=enums.ParseMode.DISABLED, disable_web_page_preview=not self.web_page, disable_notification=disable_notification, reply_to_message_id=reply_to_message_id,