mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Only allow either "markdown" or "html" as text style parse mode
This commit is contained in:
parent
f05e79e0f4
commit
197cf5506c
@ -42,7 +42,7 @@ class Parser:
|
|||||||
if mode == "":
|
if mode == "":
|
||||||
return self.markdown.parse(text)
|
return self.markdown.parse(text)
|
||||||
|
|
||||||
if mode in ["markdown", "md"]:
|
if mode in "markdown":
|
||||||
return self.markdown.parse(text, True)
|
return self.markdown.parse(text, True)
|
||||||
|
|
||||||
if mode == "html":
|
if mode == "html":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user