diff options
author | Wim <wim@42.be> | 2017-12-10 15:16:17 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-12-10 15:16:17 +0100 |
commit | d1c87c068bb65de58f647c3ccfd090f1ef7ec80b (patch) | |
tree | 65a41daa2d128315c445a97af09a7075a81ad7b2 /bridge/telegram/telegram.go | |
parent | fa2076111093de02b6d724477afce629528db3f1 (diff) | |
download | matterbridge-msglm-d1c87c068bb65de58f647c3ccfd090f1ef7ec80b.tar.gz matterbridge-msglm-d1c87c068bb65de58f647c3ccfd090f1ef7ec80b.tar.bz2 matterbridge-msglm-d1c87c068bb65de58f647c3ccfd090f1ef7ec80b.zip |
Also use HTML in edited messages (telegram). Closes #315
Diffstat (limited to 'bridge/telegram/telegram.go')
-rw-r--r-- | bridge/telegram/telegram.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 |