mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +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
1 changed files with 0 additions and 8 deletions
|
|
@ -99,14 +99,6 @@ class IterChatMembers(BaseClient):
|
||||||
limit = min(200, total)
|
limit = min(200, total)
|
||||||
resolved_chat_id = self.resolve_peer(chat_id)
|
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:
|
if filter not in QUERYABLE_FILTERS:
|
||||||
queries = [""]
|
queries = [""]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue