From a29bd1ab683bc9e068aefb722e9e87bb4fe6aa76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elisi=C3=A1rio=20Couto?= Date: Wed, 21 Aug 2024 15:56:06 +0100 Subject: [PATCH] fix(notifications/telegram): Escape parenthesis. --- leggen/notifications/telegram.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/leggen/notifications/telegram.py b/leggen/notifications/telegram.py index 3b03855..07c7364 100644 --- a/leggen/notifications/telegram.py +++ b/leggen/notifications/telegram.py @@ -12,6 +12,8 @@ def escape_markdown(text: str) -> str: .replace(".", "\\.") .replace("$", "\\$") .replace("+", "\\+") + .replace("(", "\\(") + .replace(")", "\\)") )