mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-27 12:28:09 +00:00
Show an error message for invalid parse modes
This commit is contained in:
parent
e188da7afc
commit
ba34bf84f9
@ -51,6 +51,8 @@ class Parser:
|
||||
if mode == enums.ParseMode.DISABLED:
|
||||
return {"message": text, "entities": []}
|
||||
|
||||
raise ValueError(f'Invalid parse mode "{mode}"')
|
||||
|
||||
@staticmethod
|
||||
def unparse(text: str, entities: list, is_html: bool):
|
||||
if is_html:
|
||||
|
Loading…
x
Reference in New Issue
Block a user