mirror of
https://github.com/paul-nameless/tg
synced 2024-11-24 21:03:06 +00:00
Disable text formatting which uses tdlib (it is not implemented as in desktop clients)
This commit is contained in:
parent
ecb8afb4ef
commit
9a24acb123
1 changed files with 5 additions and 4 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue