mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-31 16:40:53 +01:00
Typo-Fix (#1962)
This commit is contained in:
parent
5057825586
commit
c2d91c752f
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def escape_markdown(text, version=1, entity_type=None):
|
|||
else:
|
||||
escape_chars = '_*\[\]()~`>\#\+\-=|{}\.!'
|
||||
else:
|
||||
raise ValueError('Markdown version musst be either 1 or 2!')
|
||||
raise ValueError('Markdown version must be either 1 or 2!')
|
||||
|
||||
return re.sub(r'([%s])' % escape_chars, r'\\\1', text)
|
||||
|
||||
|
|
Loading…
Reference in a new issue