Fix iter_members not working properly as async generator

This commit is contained in:
Dan 2020-04-06 16:05:21 +02:00
parent 570cb888b2
commit 1b0b467d7b

View File

@ -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,