From 3a4e24ecbf721e0002bf2ff796fdb27ebbbf411f Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 25 Apr 2018 12:50:09 +0200 Subject: [PATCH] Fix prints of pyrogram types --- pyrogram/api/core/object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/api/core/object.py b/pyrogram/api/core/object.py index c45e40bc..e3092212 100644 --- a/pyrogram/api/core/object.py +++ b/pyrogram/api/core/object.py @@ -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(