2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +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: else:
photos = extra photos = extra
else: else:
photos = [current] if current:
photos = [current]
else:
photos = []
return types.List(photos[offset:limit]) return types.List(photos[offset:limit])
else: else: