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
56406263d9
commit
a2bb0f28e9
@ -237,8 +237,7 @@ public class TelegramActions implements ThingActions {
|
|||||||
}
|
}
|
||||||
TelegramHandler localHandler = handler;
|
TelegramHandler localHandler = handler;
|
||||||
if (localHandler != null) {
|
if (localHandler != null) {
|
||||||
String escapedMessage = message.replace("_", "\\_");
|
SendMessage sendMessage = new SendMessage(chatId, message);
|
||||||
SendMessage sendMessage = new SendMessage(chatId, escapedMessage);
|
|
||||||
if (localHandler.getParseMode() != null) {
|
if (localHandler.getParseMode() != null) {
|
||||||
sendMessage.parseMode(localHandler.getParseMode());
|
sendMessage.parseMode(localHandler.getParseMode());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user