Commit 1d23c32de1 broke sending underscore character in messages (#14204) (#14314)

This PR reverts commit 1d23c32de1 and fix #14204.

Signed-off-by: Daniel Schröter <d.schroeter@gmx.de>
This commit is contained in:
Daniel-at-git 2023-02-02 20:40:57 +01:00 committed by Jacob Laursen
parent 56406263d9
commit a2bb0f28e9

View File

@ -237,8 +237,7 @@ public class TelegramActions implements ThingActions {
}
TelegramHandler localHandler = handler;
if (localHandler != null) {
String escapedMessage = message.replace("_", "\\_");
SendMessage sendMessage = new SendMessage(chatId, escapedMessage);
SendMessage sendMessage = new SendMessage(chatId, message);
if (localHandler.getParseMode() != null) {
sendMessage.parseMode(localHandler.getParseMode());
}