~gdanix/telegram-bot-simple

76af4330371b843c1de4f3fc96710f3f72e3118e — Alexander Vershilov 4 years ago 4864d1a
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.
1 files changed, 1 insertions(+), 0 deletions(-)

M src/Telegram/Bot/API/Methods.hs
M src/Telegram/Bot/API/Methods.hs => src/Telegram/Bot/API/Methods.hs +1 -0
@@ 86,6 86,7 @@ instance FromJSON SomeReplyMarkup where parseJSON = genericSomeParseJSON
data ParseMode
  = Markdown
  | HTML
  | MarkdownV2
  deriving (Generic)

instance ToJSON   ParseMode