2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Fix TLObject.__repr__ (#953)

* Fix __repr__ method

* Style fixes

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
This commit is contained in:
Danstiv 2022-04-12 19:01:40 +07:00 committed by GitHub
parent 874709c258
commit 69a50fb3b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,9 @@ class TLObject:
return dumps(self, indent=4, default=TLObject.default, ensure_ascii=False)
def __repr__(self) -> str:
if not hasattr(self, "QUALNAME"):
return repr(self)
return "pyrogram.raw.{}({})".format(
self.QUALNAME,
", ".join(