diff options
Diffstat (limited to 'bridge/telegram')
-rw-r--r-- | bridge/telegram/telegram.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 6e78e819..5c6de447 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -89,6 +89,9 @@ func (b *Btelegram) Send(msg config.Message) (string, error) { if b.Config.MessageFormat == "HTML" { m.ParseMode = tgbotapi.ModeHTML } + if b.Config.MessageFormat == "Markdown" { + m.ParseMode = tgbotapi.ModeMarkdown + } _, err = b.c.Send(m) if err != nil { return "", err @@ -324,6 +327,9 @@ func (b *Btelegram) sendMessage(chatid int64, text string) (string, error) { if b.Config.MessageFormat == "HTML" { m.ParseMode = tgbotapi.ModeHTML } + if b.Config.MessageFormat == "Markdown" { + m.ParseMode = tgbotapi.ModeMarkdown + } res, err := b.c.Send(m) if err != nil { return "", err |