diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-13 09:00:26 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-13 09:00:26 -0500 |
| commit | 399fcfd8b9536c54e4bf77d2d791ffb88b3a0257 (patch) | |
| tree | f3bfd028f061f1a404990636b906cd3d62561945 /Omni | |
| parent | 1c7b30005af27dcc3345f7dee0fe0404c3bc8c49 (diff) | |
feat: enable Markdown rendering in Telegram messages
Add parse_mode=Markdown to sendMessage and editMessage API calls
Diffstat (limited to 'Omni')
| -rw-r--r-- | Omni/Agent/Telegram.hs | 6 |
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 = |
