Skip to content

Commit 20146de

Browse files
committed
Show only the type name (class)
1 parent 2e81a23 commit 20146de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/api/core/object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def default(self, o: Object):
7676

7777
if o is not None:
7878
if o.startswith("pyrogram.client"):
79-
r = remove_none(OrderedDict([("_", o)] + [i for i in content.items()]))
79+
r = remove_none(OrderedDict([("_", o.split(".")[-1])] + [i for i in content.items()]))
8080
r.pop("client", None)
8181

8282
return r

0 commit comments

Comments
 (0)