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,