diff options
author | Andrey Groshev <greenx@yandex.ru> | 2020-07-12 23:40:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 22:40:22 +0200 |
commit | a94fe558868c39282530284110b059bd02e67a2d (patch) | |
tree | d64dcf11fa18e6fc3eff0c2dcaa08a5528e7bc0f /bridge/telegram/handlers.go | |
parent | 9b22f164970c1e01f4701db922aaddbe93999fb6 (diff) | |
download | matterbridge-msglm-a94fe558868c39282530284110b059bd02e67a2d.tar.gz matterbridge-msglm-a94fe558868c39282530284110b059bd02e67a2d.tar.bz2 matterbridge-msglm-a94fe558868c39282530284110b059bd02e67a2d.zip |
Fix MarkdownV2 support in Telegram (#1169)
Diffstat (limited to 'bridge/telegram/handlers.go')
-rw-r--r-- | bridge/telegram/handlers.go | 3 |
1 files changed, 3 insertions, 0 deletions
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") |