From bea4225d28ecb6b7d5e7d966c1d060fed29da5b1 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Fri, 27 Dec 2019 10:56:26 +0100 Subject: [PATCH] Don't reply to message on text button click (#1351) Official clients don't do it, so we probably shouldn't either. --- 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 5ac97340..5c749ac3 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, parse_mode=None) + self._chat, self.button.text, 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