summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-12-10 15:16:17 +0100
committerWim <wim@42.be>2017-12-10 15:16:17 +0100
commitd1c87c068bb65de58f647c3ccfd090f1ef7ec80b (patch)
tree65a41daa2d128315c445a97af09a7075a81ad7b2 /bridge
parentfa2076111093de02b6d724477afce629528db3f1 (diff)
downloadmatterbridge-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')
-rw-r--r--bridge/telegram/telegram.go3
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