Don't reply to message on text button click (#1351)

Official clients don't do it, so we probably shouldn't either.
This commit is contained in:
Lonami Exo 2019-12-27 10:56:26 +01:00
parent 1bd02d64c5
commit bea4225d28

View File

@ -78,7 +78,7 @@ class MessageButton:
""" """
if isinstance(self.button, types.KeyboardButton): if isinstance(self.button, types.KeyboardButton):
return await self._client.send_message( 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): elif isinstance(self.button, types.KeyboardButtonCallback):
req = functions.messages.GetBotCallbackAnswerRequest( req = functions.messages.GetBotCallbackAnswerRequest(
peer=self._chat, msg_id=self._msg_id, data=self.button.data peer=self._chat, msg_id=self._msg_id, data=self.button.data