mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Show only the type name (class)
This commit is contained in:
parent
2e81a2369d
commit
20146ded28
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue