mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 15:14:52 +00:00
Don't use the "recent" filter when passing a query argument
This commit is contained in:
parent
062a6ce6dd
commit
73d9af51ef
1 changed files with 3 additions and 1 deletions
|
|
@ -101,7 +101,9 @@ class IterChatMembers(BaseClient):
|
||||||
|
|
||||||
filter = (
|
filter = (
|
||||||
Filters.RECENT
|
Filters.RECENT
|
||||||
if self.get_chat_members_count(chat_id) <= 10000 and filter == Filters.ALL
|
if (not query
|
||||||
|
and filter == Filters.ALL
|
||||||
|
and self.get_chat_members_count(chat_id) <= 10000)
|
||||||
else filter
|
else filter
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue