From 9bc004184d6fc2ad6d6f54df03b57d086c2f8802 Mon Sep 17 00:00:00 2001 From: Egor Cherniak Date: Tue, 4 Jul 2023 15:28:02 +0300 Subject: [PATCH] Add more escape params --- .../dev/vality/alert/tg/bot/mapper/MenuCallbackMapper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/dev/vality/alert/tg/bot/mapper/MenuCallbackMapper.java b/src/main/java/dev/vality/alert/tg/bot/mapper/MenuCallbackMapper.java index 34a4dce..d3af5f5 100644 --- a/src/main/java/dev/vality/alert/tg/bot/mapper/MenuCallbackMapper.java +++ b/src/main/java/dev/vality/alert/tg/bot/mapper/MenuCallbackMapper.java @@ -111,6 +111,7 @@ public class MenuCallbackMapper { .replace("*", "\\*") .replace("[", "\\[") .replace("`", "\\`") - .replace(".", "\\."); + .replace(".", "\\.") + .replace("-", "\\-"); } }