Skip to content

Commit e1c6e6e

Browse files
committed
Better handling of non-string message texts
Now everything will be allowed and automatically casted to string. This means that send_message(id, True) would send "True", literally.
1 parent bed13de commit e1c6e6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/client/parser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, client: Union["pyrogram.BaseClient", None]):
3131
self.markdown = Markdown(client)
3232

3333
def parse(self, text: str, mode: Union[str, None] = object):
34-
text = str(text or "").strip()
34+
text = str(text).strip()
3535

3636
if mode == object:
3737
if self.client:

0 commit comments

Comments
 (0)