mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-28 20:33:45 +03:00
Don't parse Button's text on click (#1315)
This commit is contained in:
parent
a1aaa96120
commit
3d1ce845be
|
@ -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)
|
self._chat, self.button.text, reply_to=self._msg_id, 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user