mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +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:
|
else:
|
||||||
return repr(o)
|
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()]))
|
return remove_none(OrderedDict([i for i in content.items()]))
|
||||||
else:
|
else:
|
||||||
return OrderedDict(
|
return OrderedDict(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue