Skip to content

Commit 928c8ac

Browse files
committed
Fix iter_profile_photos wrong hinted return type
1 parent 89860a4 commit 928c8ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrogram/methods/users/iter_profile_photos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def iter_profile_photos(
2828
chat_id: Union[int, str],
2929
offset: int = 0,
3030
limit: int = 0,
31-
) -> Optional[AsyncGenerator["types.Message", None]]:
31+
) -> Optional[AsyncGenerator["types.Photo", None]]:
3232
"""Iterate through a chat or a user profile photos sequentially.
3333
3434
This convenience method does the same as repeatedly calling :meth:`~pyrogram.Client.get_profile_photos` in a

0 commit comments

Comments
 (0)