diff --git a/pyrogram/file_id.py b/pyrogram/file_id.py index b64de423..0fa5e3d0 100644 --- a/pyrogram/file_id.py +++ b/pyrogram/file_id.py @@ -395,7 +395,7 @@ class FileId: return b64_encode(rle_encode(buffer.getvalue())) def __str__(self): - return str(self.__dict__) + return str({k: v for k, v in self.__dict__.items() if v is not None}) class FileUniqueType(IntEnum): @@ -475,4 +475,4 @@ class FileUniqueId: return b64_encode(rle_encode(string)) def __str__(self): - return str(self.__dict__) + return str({k: v for k, v in self.__dict__.items() if v is not None})