mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Don't use the "recent" filter when passing a query argument
This commit is contained in:
parent
062a6ce6dd
commit
73d9af51ef
@ -101,7 +101,9 @@ class IterChatMembers(BaseClient):
|
||||
|
||||
filter = (
|
||||
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
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user