From 925f7012f1230b2d49f64fb10b2a5bf7bc4712e7 Mon Sep 17 00:00:00 2001 From: _run Date: Tue, 20 Dec 2022 23:44:32 +0400 Subject: [PATCH] Update formatting.py --- telebot/formatting.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telebot/formatting.py b/telebot/formatting.py index 7b6a9f3..4af8263 100644 --- a/telebot/formatting.py +++ b/telebot/formatting.py @@ -61,8 +61,8 @@ def escape_markdown(content: str) -> str: :rtype: :obj:`str` """ - parse = re.sub(r"([_*\[\]()~`>\#\+\-=|\.!])", r"\\\1", content) - reparse = re.sub(r"\\\\([_*\[\]()~`>\#\+\-=|\.!])", r"\1", parse) + parse = re.sub(r"([_*\[\]()~`>\#\+\-=|\.!\{}])", r"\\\1", content) + reparse = re.sub(r"\\\\([_*\[\]()~`>\#\+\-=|\.!\{}])", r"\1", parse) return reparse @@ -323,4 +323,4 @@ def hide_link(url: str) -> str: :return: The hidden url. :rtype: :obj:`str` """ - return f'' \ No newline at end of file + return f''