mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-25 22:31:35 +00:00
Fix username (telegram)
This commit is contained in:
parent
678a7ceb4e
commit
5f8b24e32c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user