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:
parent
874709c258
commit
69a50fb3b2
@ -53,6 +53,9 @@ class TLObject:
|
|||||||
return dumps(self, indent=4, default=TLObject.default, ensure_ascii=False)
|
return dumps(self, indent=4, default=TLObject.default, ensure_ascii=False)
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
|
if not hasattr(self, "QUALNAME"):
|
||||||
|
return repr(self)
|
||||||
|
|
||||||
return "pyrogram.raw.{}({})".format(
|
return "pyrogram.raw.{}({})".format(
|
||||||
self.QUALNAME,
|
self.QUALNAME,
|
||||||
", ".join(
|
", ".join(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user