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