mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Fix prints of pyrogram types
This commit is contained in:
parent
c65706f41e
commit
3a4e24ecbf
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ class Encoder(JSONEncoder):
|
|||
else:
|
||||
return repr(o)
|
||||
|
||||
if "pyrogram" in objects.get(getattr(o, "ID", "")):
|
||||
if objects.get(getattr(o, "ID", "")).startswith("pyrogram.client"):
|
||||
return remove_none(OrderedDict([i for i in content.items()]))
|
||||
else:
|
||||
return OrderedDict(
|
||||
|
|
|
|||
Loading…
Reference in a new issue