From ef5fa8f70b2857a8cd0859584f8d84f0e0825f94 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 12 Apr 2020 13:30:59 +0200 Subject: [PATCH] Fix message entities being kept unparsed for private messages Closes #386 --- pyrogram/client/methods/messages/send_message.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/methods/messages/send_message.py b/pyrogram/client/methods/messages/send_message.py index d8ee87af..f719031c 100644 --- a/pyrogram/client/methods/messages/send_message.py +++ b/pyrogram/client/methods/messages/send_message.py @@ -151,7 +151,10 @@ class SendMessage(BaseClient): text=message, date=r.date, outgoing=r.out, - entities=entities, + entities=[ + pyrogram.MessageEntity._parse(None, entity, {}) + for entity in entities + ], client=self )