summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Omni/Agent/Telegram.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Omni/Agent/Telegram.hs b/Omni/Agent/Telegram.hs
index d6a8a30..68527b7 100644
--- a/Omni/Agent/Telegram.hs
+++ b/Omni/Agent/Telegram.hs
@@ -237,7 +237,8 @@ sendMessageReturningId cfg chatId text = do
body =
Aeson.object
[ "chat_id" .= chatId,
- "text" .= text
+ "text" .= text,
+ "parse_mode" .= ("Markdown" :: Text)
]
req0 <- HTTP.parseRequest url
let req =
@@ -269,7 +270,8 @@ editMessage cfg chatId messageId text = do
Aeson.object
[ "chat_id" .= chatId,
"message_id" .= messageId,
- "text" .= text
+ "text" .= text,
+ "parse_mode" .= ("Markdown" :: Text)
]
req0 <- HTTP.parseRequest url
let req =