mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
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.
This commit is contained in:
parent
bed13de413
commit
e1c6e6ecc1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user