2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-01 06:45:39 +00:00

Fix get_profile_photos not working correctly in case of no chat photos

This commit is contained in:
Dan
2020-08-29 17:26:16 +02:00
parent 2c99926825
commit 71bdfe6c40

View File

@@ -100,7 +100,10 @@ class GetProfilePhotos(Scaffold):
else:
photos = extra
else:
photos = [current]
if current:
photos = [current]
else:
photos = []
return types.List(photos[offset:limit])
else: