From 197cf5506ce7cbeb03db10b2b979e29040cf9119 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 26 Jun 2019 16:36:00 +0200 Subject: [PATCH] Only allow either "markdown" or "html" as text style parse mode --- pyrogram/client/parser/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/parser/parser.py b/pyrogram/client/parser/parser.py index afb7ecaa..f685c942 100644 --- a/pyrogram/client/parser/parser.py +++ b/pyrogram/client/parser/parser.py @@ -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":