mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-05-20 09:14:07 +00:00
fixed character escaping in replier
This commit is contained in:
parent
12a1c08866
commit
eeb9fe5c3a
@ -18,7 +18,7 @@ class Replier:
|
||||
telegramRestrictionCharacters = ['_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']
|
||||
|
||||
for character in telegramRestrictionCharacters:
|
||||
formatted.replace(character, r'\' + character)
|
||||
formatted.replace(character, r'\{character}')
|
||||
|
||||
return formatted
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user