Escape definitivo
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user