mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-03 07:45:14 +00:00
Fix PhotoSize parsing
This commit is contained in:
@@ -81,6 +81,6 @@ class PhotoSize(PyrogramType):
|
||||
),
|
||||
width=getattr(photo_size, "w", 0),
|
||||
height=getattr(photo_size, "h", 0),
|
||||
file_size=getattr(photo_size, "size", len(photo_size.bytes)),
|
||||
file_size=getattr(photo_size, "size", len(getattr(photo_size, "bytes", b""))),
|
||||
client=client
|
||||
)
|
||||
|
Reference in New Issue
Block a user