diff options
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/telegram/telegram.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index cbf8eedf..e17c7801 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -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 |