From a94fe558868c39282530284110b059bd02e67a2d Mon Sep 17 00:00:00 2001 From: Andrey Groshev Date: Sun, 12 Jul 2020 23:40:22 +0300 Subject: Fix MarkdownV2 support in Telegram (#1169) --- bridge/telegram/handlers.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/telegram/handlers.go') diff --git a/bridge/telegram/handlers.go b/bridge/telegram/handlers.go index f73c8b0f..5c60f74b 100644 --- a/bridge/telegram/handlers.go +++ b/bridge/telegram/handlers.go @@ -322,6 +322,9 @@ func (b *Btelegram) handleEdit(msg *config.Message, chatid int64) (string, error case "Markdown": b.Log.Debug("Using mode markdown") m.ParseMode = tgbotapi.ModeMarkdown + case MarkdownV2: + b.Log.Debug("Using mode MarkdownV2") + m.ParseMode = MarkdownV2 } if strings.ToLower(b.GetString("MessageFormat")) == HTMLNick { b.Log.Debug("Using mode HTML - nick only") -- cgit v1.2.3