mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-17 05:08:02 +00:00
Hide _client when printing pyrogram object
This commit is contained in:
parent
7e5dcb9f60
commit
36a1015ec9
@ -78,7 +78,7 @@ class Encoder(JSONEncoder):
|
|||||||
if o is not None:
|
if o is not None:
|
||||||
if o.startswith("pyrogram.client"):
|
if o.startswith("pyrogram.client"):
|
||||||
r = remove_none(OrderedDict([("_", name)] + [i for i in content.items()]))
|
r = remove_none(OrderedDict([("_", name)] + [i for i in content.items()]))
|
||||||
r.pop("client", None)
|
r.pop("_client", None)
|
||||||
|
|
||||||
return r
|
return r
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user