mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
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:
parent
baf077d71d
commit
4d9bf1cad1
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user