Signed-off-by: clinique <gael@lhopital.org>
pull/13762/head
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;
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());
}