Skip to content

Commit

Permalink
Solves issue openhab#11691
Browse files Browse the repository at this point in the history
Signed-off-by: clinique <gael@lhopital.org>
  • Loading branch information
clinique committed Nov 21, 2022
1 parent 6c170db commit 088669b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -237,7 +237,8 @@ private boolean sendTelegramGeneral(@ActionInput(name = "chatId") @Nullable Long
}
TelegramHandler localHandler = handler;
if (localHandler != null) {
SendMessage sendMessage = new SendMessage(chatId, message);
String escapedMessage = message.replace("_", "\\_");
SendMessage sendMessage = new SendMessage(chatId, escapedMessage);
if (localHandler.getParseMode() != null) {
sendMessage.parseMode(localHandler.getParseMode());
}

0 comments on commit 088669b

Please sign in to comment.