From 36a1015ec9939414f1368dd19b601215bc229365 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 4 Jun 2018 09:11:58 +0200 Subject: [PATCH] Hide _client when printing pyrogram object --- 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 21bd7c3f..d54d0327 100644 --- a/pyrogram/api/core/object.py +++ b/pyrogram/api/core/object.py @@ -78,7 +78,7 @@ class Encoder(JSONEncoder): if o is not None: if o.startswith("pyrogram.client"): r = remove_none(OrderedDict([("_", name)] + [i for i in content.items()])) - r.pop("client", None) + r.pop("_client", None) return r else: