mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +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…
Reference in New Issue
Block a user