mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Fix get_profile_photos not working correctly in case of no chat photos
This commit is contained in:
parent
2c99926825
commit
71bdfe6c40
@ -100,7 +100,10 @@ class GetProfilePhotos(Scaffold):
|
||||
else:
|
||||
photos = extra
|
||||
else:
|
||||
if current:
|
||||
photos = [current]
|
||||
else:
|
||||
photos = []
|
||||
|
||||
return types.List(photos[offset:limit])
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user