From 28cee8d01f8f0e97de4cf1ddb86029ea79c5ced3 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 20 Feb 2020 20:41:08 +0100 Subject: [PATCH] Do not ever use "recent" filtering automatically That code existed to improve members fetching performance for channels/supergroups with less than 10k+1 members, but it was causing troubles when fetching members based on a query string and for channels with less than 10k+1 subscribers --- pyrogram/client/methods/chats/iter_chat_members.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pyrogram/client/methods/chats/iter_chat_members.py b/pyrogram/client/methods/chats/iter_chat_members.py index aaa7ab06..0f71c9ad 100644 --- a/pyrogram/client/methods/chats/iter_chat_members.py +++ b/pyrogram/client/methods/chats/iter_chat_members.py @@ -99,14 +99,6 @@ class IterChatMembers(BaseClient): limit = min(200, total) resolved_chat_id = self.resolve_peer(chat_id) - filter = ( - Filters.RECENT - if (not query - and filter == Filters.ALL - and self.get_chat_members_count(chat_id) <= 10000) - else filter - ) - if filter not in QUERYABLE_FILTERS: queries = [""]