mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 07:14:50 +00:00
Fix PhotoSize parsing
This commit is contained in:
parent
0aee909c1a
commit
8c9e5e6753
1 changed files with 1 additions and 1 deletions
|
|
@ -81,6 +81,6 @@ class PhotoSize(PyrogramType):
|
||||||
),
|
),
|
||||||
width=getattr(photo_size, "w", 0),
|
width=getattr(photo_size, "w", 0),
|
||||||
height=getattr(photo_size, "h", 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
|
client=client
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue