fixed character escaping in replier

This commit is contained in:
miloszowi 2024-03-05 08:32:48 +00:00
parent 12a1c08866
commit eeb9fe5c3a

View File

@ -18,7 +18,7 @@ class Replier:
telegramRestrictionCharacters = ['_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']
for character in telegramRestrictionCharacters:
formatted.replace(character, r'\' + character)
formatted.replace(character, r'\{character}')
return formatted