Also use HTML in edited messages (telegram). Closes #315

This commit is contained in:
Wim 2017-12-10 15:16:17 +01:00
parent fa20761110
commit d1c87c068b
1 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,9 @@ func (b *Btelegram) Send(msg config.Message) (string, error) {
return "", err return "", err
} }
m := tgbotapi.NewEditMessageText(chatid, msgid, msg.Username+msg.Text) m := tgbotapi.NewEditMessageText(chatid, msgid, msg.Username+msg.Text)
if b.Config.MessageFormat == "HTML" {
m.ParseMode = tgbotapi.ModeHTML
}
_, err = b.c.Send(m) _, err = b.c.Send(m)
if err != nil { if err != nil {
return "", err return "", err