mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 13:34:51 +00:00
Use "recent" filter for up to 10k members
This commit is contained in:
parent
6451d599b2
commit
491b96c9f6
1 changed files with 1 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ class IterChatMembers(BaseClient):
|
|||
yielded = set()
|
||||
queries = [query] if query else QUERIES
|
||||
total = limit or (1 << 31) - 1
|
||||
filter = Filters.RECENT if total <= 10000 and filter == Filters.ALL else filter
|
||||
limit = min(200, total)
|
||||
|
||||
if filter not in QUERYABLE_FILTERS:
|
||||
|
|
|
|||
Loading…
Reference in a new issue