From 062be8d7c90ecec293342cf192bed28a6c654906 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 17 Mar 2018 18:02:00 +0100 Subject: Revert #378 --- bridge/telegram/telegram.go | 1 - matterbridge.toml.sample | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 967a316b..bb3326b6 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -385,7 +385,6 @@ func (b *Btelegram) sendMessage(chatid int64, username, text string) (string, er m.Text = username + text if b.GetString("MessageFormat") == "HTML" { b.Log.Debug("Using mode HTML") - username = html.EscapeString(username) m.Text = username + text m.ParseMode = tgbotapi.ModeHTML } diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 0e74f7e8..9646f053 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -832,6 +832,11 @@ Label="" #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 "{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 <{NICK}> +# #OPTIONAL (default empty) RemoteNickFormat="[{PROTOCOL}] <{NICK}> " -- cgit v1.2.3