Skip to content

Commit

Permalink
Solves issue #11691 (#13758)
Browse files Browse the repository at this point in the history
Signed-off-by: clinique <gael@lhopital.org>
  • Loading branch information
clinique authored Nov 21, 2022
1 parent 6c170db commit 1d23c32
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 1d23c32

Please sign in to comment.