Fix prints of pyrogram types

This commit is contained in:
Dan 2018-04-25 12:50:09 +02:00
parent c65706f41e
commit 3a4e24ecbf

View File

@ -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(