From 3d1ce845bed74b00084f0c7c30e824507f768b2d Mon Sep 17 00:00:00 2001 From: penn5 Date: Fri, 1 Nov 2019 10:47:44 +0000 Subject: [PATCH] Don't parse Button's text on click (#1315) --- telethon/tl/custom/messagebutton.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/tl/custom/messagebutton.py b/telethon/tl/custom/messagebutton.py index 28e768f1..5ac97340 100644 --- a/telethon/tl/custom/messagebutton.py +++ b/telethon/tl/custom/messagebutton.py @@ -78,7 +78,7 @@ class MessageButton: """ if isinstance(self.button, types.KeyboardButton): return await self._client.send_message( - self._chat, self.button.text, reply_to=self._msg_id) + self._chat, self.button.text, reply_to=self._msg_id, parse_mode=None) elif isinstance(self.button, types.KeyboardButtonCallback): req = functions.messages.GetBotCallbackAnswerRequest( peer=self._chat, msg_id=self._msg_id, data=self.button.data