Fix iter_profile_photos wrong hinted return type
This commit is contained in:
parent
89860a4b4c
commit
928c8acd01
@ -28,7 +28,7 @@ class IterProfilePhotos(Scaffold):
|
||||
chat_id: Union[int, str],
|
||||
offset: 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.
|
||||
|
||||
This convenience method does the same as repeatedly calling :meth:`~pyrogram.Client.get_profile_photos` in a
|
||||
|
Loading…
Reference in New Issue
Block a user