Skip to content

Commit

Permalink
Commit 1d23c32 broke sending underscore character in messages (#14204) (
Browse files Browse the repository at this point in the history
#14314)

This PR reverts commit 1d23c32 and fix #14204.

Signed-off-by: Daniel Schröter <d.schroeter@gmx.de>
  • Loading branch information
Daniel-at-git authored Feb 2, 2023
1 parent baf077d commit 4d9bf1c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ private boolean sendTelegramGeneral(@ActionInput(name = "chatId") @Nullable Long
}
TelegramHandler localHandler = handler;
if (localHandler != null) {
String escapedMessage = message.replace("_", "\\_");
SendMessage sendMessage = new SendMessage(chatId, escapedMessage);
SendMessage sendMessage = new SendMessage(chatId, message);
if (localHandler.getParseMode() != null) {
sendMessage.parseMode(localHandler.getParseMode());
}
Expand Down

0 comments on commit 4d9bf1c

Please sign in to comment.