mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +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
56406263d9
commit
a2bb0f28e9
@ -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