diff --git a/pyrogram/client/parser/parser.py b/pyrogram/client/parser/parser.py index edf9553d..371c4791 100644 --- a/pyrogram/client/parser/parser.py +++ b/pyrogram/client/parser/parser.py @@ -31,7 +31,7 @@ class Parser: self.markdown = Markdown(client) def parse(self, text: str, mode: Union[str, None] = object): - text = str(text or "").strip() + text = str(text).strip() if mode == object: if self.client: