mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Fix iter_members not working properly as async generator
This commit is contained in:
parent
570cb888b2
commit
1b0b467d7b
@ -781,7 +781,7 @@ class Chat(Object):
|
|||||||
filter=filter
|
filter=filter
|
||||||
)
|
)
|
||||||
|
|
||||||
async def iter_members(
|
def iter_members(
|
||||||
self,
|
self,
|
||||||
limit: int = 0,
|
limit: int = 0,
|
||||||
query: str = "",
|
query: str = "",
|
||||||
@ -806,7 +806,7 @@ class Chat(Object):
|
|||||||
``Generator``: A generator yielding :obj:`ChatMember` objects.
|
``Generator``: A generator yielding :obj:`ChatMember` objects.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return await self._client.iter_chat_members(
|
return self._client.iter_chat_members(
|
||||||
self.id,
|
self.id,
|
||||||
limit=limit,
|
limit=limit,
|
||||||
query=query,
|
query=query,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user