From d1c87c068bb65de58f647c3ccfd090f1ef7ec80b Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 10 Dec 2017 15:16:17 +0100 Subject: Also use HTML in edited messages (telegram). Closes #315 --- bridge/telegram/telegram.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/telegram/telegram.go') diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 328850ea..ab4a0e0c 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -90,6 +90,9 @@ func (b *Btelegram) Send(msg config.Message) (string, error) { return "", err } m := tgbotapi.NewEditMessageText(chatid, msgid, msg.Username+msg.Text) + if b.Config.MessageFormat == "HTML" { + m.ParseMode = tgbotapi.ModeHTML + } _, err = b.c.Send(m) if err != nil { return "", err -- cgit v1.2.3