2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 12:57:52 +00:00

Show only the type name (class)

This commit is contained in:
Dan 2018-04-30 20:40:32 +02:00
parent 2e81a2369d
commit 20146ded28

View File

@ -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