mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 13:14:52 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue