Skip to content

Commit 3a4e24e

Browse files
committed
Fix prints of pyrogram types
1 parent c65706f commit 3a4e24e

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
@@ -72,7 +72,7 @@ def default(self, o: Object):
7272
else:
7373
return repr(o)
7474

75-
if "pyrogram" in objects.get(getattr(o, "ID", "")):
75+
if objects.get(getattr(o, "ID", "")).startswith("pyrogram.client"):
7676
return remove_none(OrderedDict([i for i in content.items()]))
7777
else:
7878
return OrderedDict(

0 commit comments

Comments
 (0)