mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 05:00:23 +03:00
add __repr__ method to TLObject
This commit is contained in:
parent
bd1b0ecdb4
commit
3d0e184713
|
@ -153,6 +153,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