mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +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…
Reference in New Issue
Block a user