Signed-off-by: clinique <gael@lhopital.org>
This commit is contained in:
Gaël L'hopital 2022-11-21 20:38:37 +01:00 committed by GitHub
parent 6c170db1bd
commit 1d23c32de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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