From 1b0b467d7b9df75b03629f751f8ed0021b6e9fda Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 6 Apr 2020 16:05:21 +0200 Subject: [PATCH] Fix iter_members not working properly as async generator --- pyrogram/client/types/user_and_chats/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/types/user_and_chats/chat.py b/pyrogram/client/types/user_and_chats/chat.py index f1369a00..4b3c1f9d 100644 --- a/pyrogram/client/types/user_and_chats/chat.py +++ b/pyrogram/client/types/user_and_chats/chat.py @@ -781,7 +781,7 @@ class Chat(Object): filter=filter ) - async def iter_members( + def iter_members( self, limit: int = 0, query: str = "", @@ -806,7 +806,7 @@ class Chat(Object): ``Generator``: A generator yielding :obj:`ChatMember` objects. """ - return await self._client.iter_chat_members( + return self._client.iter_chat_members( self.id, limit=limit, query=query,