2
0
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:
Dan 2019-06-26 16:36:00 +02:00
parent f05e79e0f4
commit 197cf5506c

View File

@ -42,7 +42,7 @@ class Parser:
if mode == "":
return self.markdown.parse(text)
if mode in ["markdown", "md"]:
if mode in "markdown":
return self.markdown.parse(text, True)
if mode == "html":