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_BACKSLASH_LINE_BREAK|
blackfriday.EXTENSION_DEFINITION_LISTS) 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" m.ParseMode = "HTML"
_, err = b.c.Send(m) _, err = b.c.Send(m)
return err return err