mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
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
This commit is contained in:
parent
7be86f8ea3
commit
28cee8d01f
@ -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 = [""]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user