From b041f70eba5186fc51c86e1c16e65fe50f7899d3 Mon Sep 17 00:00:00 2001 From: Joan Cano Date: Thu, 2 Mar 2023 12:50:59 +0100 Subject: [PATCH] Escape definitivo --- wallamanta/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallamanta/helpers.py b/wallamanta/helpers.py index b5b9bb4..673531b 100644 --- a/wallamanta/helpers.py +++ b/wallamanta/helpers.py @@ -4,7 +4,7 @@ TELEGRAM_ESCAPE_CHARACTERS = ['_', '*', '[', ']', '(', ')', '~', '>', '#', '+', def telegram_escape_characters(text): for character in TELEGRAM_ESCAPE_CHARACTERS: try: - text = text.replace(character, f'\{character}') + text = text.replace(character, f'\\{character}') except: pass return text \ No newline at end of file