Skip to content

Commit

Permalink
pyrofork: Fix get_chat_photo incase photo not found and limit param i…
Browse files Browse the repository at this point in the history
…s enabled

Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed Sep 2, 2024
1 parent 929b8de commit 06cff49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/methods/users/get_chat_photos.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def get_chat_photos(
extra = [message.new_chat_photo for message in r]

if extra:
if current:
if current and len(current) > 0:
photos = (current + extra) if current[0].file_id != extra[0].file_id else extra
else:
photos = extra
Expand Down

0 comments on commit 06cff49

Please sign in to comment.