5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-09 15:40:27 +00:00
This commit is contained in:
Wim 2018-03-17 18:02:00 +01:00
parent db25ee59c5
commit 062be8d7c9
2 changed files with 5 additions and 1 deletions

View File

@ -385,7 +385,6 @@ func (b *Btelegram) sendMessage(chatid int64, username, text string) (string, er
m.Text = username + text m.Text = username + text
if b.GetString("MessageFormat") == "HTML" { if b.GetString("MessageFormat") == "HTML" {
b.Log.Debug("Using mode HTML") b.Log.Debug("Using mode HTML")
username = html.EscapeString(username)
m.Text = username + text m.Text = username + text
m.ParseMode = tgbotapi.ModeHTML m.ParseMode = tgbotapi.ModeHTML
} }

View File

@ -832,6 +832,11 @@ Label=""
#The string "{BRIDGE}" (case sensitive) will be replaced by the sending bridge #The string "{BRIDGE}" (case sensitive) will be replaced by the sending bridge
#The string "{LABEL}" (case sensitive) will be replaced by label= field of the sending bridge #The string "{LABEL}" (case sensitive) will be replaced by label= field of the sending bridge
#The string "{PROTOCOL}" (case sensitive) will be replaced by the protocol used by the bridge #The string "{PROTOCOL}" (case sensitive) will be replaced by the protocol used by the bridge
#
#WARNING: if you have set MessageFormat="HTML" be sure that this format matches the guidelines
#on https://core.telegram.org/bots/api#html-style otherwise the message will not go through to
#telegram! eg <{NICK}> should be &lt;{NICK}&gt;
#
#OPTIONAL (default empty) #OPTIONAL (default empty)
RemoteNickFormat="[{PROTOCOL}] <{NICK}> " RemoteNickFormat="[{PROTOCOL}] <{NICK}> "