mirror of
https://github.com/valitydev/alert-tg-bot.git
synced 2024-11-06 01:55:23 +00:00
Add more escape characters (#20)
This commit is contained in:
parent
535876b5b8
commit
743de92a76
@ -110,8 +110,16 @@ public class MenuCallbackMapper {
|
||||
.replace("_", "\\_")
|
||||
.replace("*", "\\*")
|
||||
.replace("[", "\\[")
|
||||
.replace("]", "\\]")
|
||||
.replace("(", "\\(")
|
||||
.replace(")", "\\)")
|
||||
.replace("~", "\\~")
|
||||
.replace("#", "\\#")
|
||||
.replace("`", "\\`")
|
||||
.replace(".", "\\.")
|
||||
.replace("-", "\\-");
|
||||
.replace("+", "\\+")
|
||||
.replace("-", "\\-")
|
||||
.replace("=", "\\=")
|
||||
.replace(">", "\\>");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user