Fix iter_profile_photos wrong hinted return type

This commit is contained in:
Dan 2021-05-03 20:58:37 +02:00
parent 89860a4b4c
commit 928c8acd01

View File

@ -28,7 +28,7 @@ class IterProfilePhotos(Scaffold):
chat_id: Union[int, str], chat_id: Union[int, str],
offset: int = 0, offset: int = 0,
limit: int = 0, limit: int = 0,
) -> Optional[AsyncGenerator["types.Message", None]]: ) -> Optional[AsyncGenerator["types.Photo", None]]:
"""Iterate through a chat or a user profile photos sequentially. """Iterate through a chat or a user profile photos sequentially.
This convenience method does the same as repeatedly calling :meth:`~pyrogram.Client.get_profile_photos` in a This convenience method does the same as repeatedly calling :meth:`~pyrogram.Client.get_profile_photos` in a