From 76af4330371b843c1de4f3fc96710f3f72e3118e Mon Sep 17 00:00:00 2001 From: Alexander Vershilov Date: Thu, 30 Jul 2020 12:17:00 +0300 Subject: [PATCH] Add markdownv2 parse mode Telegram API supports MarkdownV2 flavour of markdown that is much richer than V1. See https://core.telegram.org/bots/api#markdownv2-style for details. --- src/Telegram/Bot/API/Methods.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Telegram/Bot/API/Methods.hs b/src/Telegram/Bot/API/Methods.hs index f392d12..863a1d7 100644 --- a/src/Telegram/Bot/API/Methods.hs +++ b/src/Telegram/Bot/API/Methods.hs @@ -86,6 +86,7 @@ instance FromJSON SomeReplyMarkup where parseJSON = genericSomeParseJSON data ParseMode = Markdown | HTML + | MarkdownV2 deriving (Generic) instance ToJSON ParseMode -- 2.38.5