mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-28 21:52:08 -08: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_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
|
||||||
|
Loading…
Reference in New Issue
Block a user