Modificada función de escape
This commit is contained in:
@@ -3,5 +3,8 @@ TELEGRAM_ESCAPE_CHARACTERS = ['_', '*', '[', ']', '(', ')', '~', '>', '#', '+',
|
|||||||
|
|
||||||
def telegram_escape_characters(text):
|
def telegram_escape_characters(text):
|
||||||
for character in TELEGRAM_ESCAPE_CHARACTERS:
|
for character in TELEGRAM_ESCAPE_CHARACTERS:
|
||||||
|
try:
|
||||||
text = text.replace(character, f'\{character}')
|
text = text.replace(character, f'\{character}')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
return text
|
return text
|
||||||
Reference in New Issue
Block a user