Skip to content

Commit

Permalink
fix: markdown escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Antares0982 committed May 19, 2024
1 parent e056b4c commit d0c5cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antares_bot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def markdown_escape(s: str) -> str:
Escape markdown special characters.
Reference: https://core.telegram.org/bots/api#markdown-style
"""
special_chars = ['`', '*', '_', '[', ']']
special_chars = ['`', '*', '_', '[']
for c in special_chars:
s = s.replace(c, "\\" + c)
return s
Expand Down

0 comments on commit d0c5cac

Please sign in to comment.