Disable text formatting which uses tdlib (it is not implemented as in desktop clients)

This commit is contained in:
Paul Nameless 2020-07-21 20:32:55 +08:00
parent ecb8afb4ef
commit 9a24acb123

View file

@ -61,10 +61,11 @@ class Tdlib(Telegram):
def send_message(self, chat_id: int, msg: str) -> AsyncResult:
text = {"@type": "formattedText", "text": msg}
result = self.parse_text_entities(msg)
result.wait()
if not result.error:
text = result.update
# TODO: implement your own parse entities like in tdlib
# result = self.parse_text_entities(msg)
# result.wait()
# if not result.error:
# text = result.update
data = {
"@type": "sendMessage",