Skip to content

Commit 197cf55

Browse files
committed
Only allow either "markdown" or "html" as text style parse mode
1 parent f05e79e commit 197cf55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/client/parser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def parse(self, text: str, mode: str = ""):
4242
if mode == "":
4343
return self.markdown.parse(text)
4444

45-
if mode in ["markdown", "md"]:
45+
if mode in "markdown":
4646
return self.markdown.parse(text, True)
4747

4848
if mode == "html":

0 commit comments

Comments
 (0)