mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Fix prints of pyrogram types
This commit is contained in:
parent
c65706f41e
commit
3a4e24ecbf
@ -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…
x
Reference in New Issue
Block a user