From 54ebf6b9a7ff2cbdd69cf02f8b009887526d798e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 13 Aug 2016 16:51:26 +0200 Subject: [PATCH] Send formatted messages --- telegram.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telegram.py b/telegram.py index 0eeb7283..fd2ecb33 100644 --- a/telegram.py +++ b/telegram.py @@ -14,7 +14,8 @@ async def send_message(msg: str, to: int): # Send the message params = { "chat_id": to, - "text": msg + "text": msg, + "parse_mode": "Markdown" } r = await loop.run_in_executor(None, functools.partial(requests.get, params=params), "https://api.telegram.org/bot{token}/sendMessage".format(token=token))