mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 12:40:22 +03:00
add __repr__ method to TLObject
This commit is contained in:
parent
bd1b0ecdb4
commit
3d0e184713
|
@ -152,6 +152,9 @@ class TLObject:
|
|||
|
||||
def __str__(self):
|
||||
return TLObject.pretty_format(self)
|
||||
|
||||
def __repr__(self):
|
||||
return TLObject.pretty_format(self, indent=1)
|
||||
|
||||
def stringify(self):
|
||||
return TLObject.pretty_format(self, indent=0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user