5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-25 23:41:35 +00:00

Fix username (telegram)

This commit is contained in:
Wim 2017-01-27 23:30:46 +01:00
parent 678a7ceb4e
commit 5f8b24e32c

View File

@ -117,7 +117,7 @@ func (b *Btelegram) Send(msg config.Message) error {
blackfriday.EXTENSION_BACKSLASH_LINE_BREAK|
blackfriday.EXTENSION_DEFINITION_LISTS)
m := tgbotapi.NewMessage(chatid, msg.Username+string(parsed))
m := tgbotapi.NewMessage(chatid, html.EscapeString(msg.Username)+string(parsed))
m.ParseMode = "HTML"
_, err = b.c.Send(m)
return err