mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Show only the type name (class)
This commit is contained in:
parent
2e81a2369d
commit
20146ded28
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user