diff --git a/telethon/tl/tlobject.py b/telethon/tl/tlobject.py index b048158c..fbc465ba 100644 --- a/telethon/tl/tlobject.py +++ b/telethon/tl/tlobject.py @@ -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)