We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d44438 commit 4af9e30Copy full SHA for 4af9e30
pyrogram/parser/parser.py
@@ -31,7 +31,7 @@ def __init__(self, client: Optional["pyrogram.Client"]):
31
self.markdown = Markdown(client)
32
33
async def parse(self, text: str, mode: Optional[str] = object):
34
- text = str(text).strip()
+ text = str(text if text else "").strip()
35
36
if mode == object:
37
if self.client:
0 commit comments