mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-04 08:15:08 +00:00
Show only the type name (class)
This commit is contained in:
@@ -76,7 +76,7 @@ class Encoder(JSONEncoder):
|
||||
|
||||
if o is not None:
|
||||
if o.startswith("pyrogram.client"):
|
||||
r = remove_none(OrderedDict([("_", o)] + [i for i in content.items()]))
|
||||
r = remove_none(OrderedDict([("_", o.split(".")[-1])] + [i for i in content.items()]))
|
||||
r.pop("client", None)
|
||||
|
||||
return r
|
||||
|
Reference in New Issue
Block a user