2
0
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:
Dan 2020-02-20 13:54:51 +01:00
parent 062a6ce6dd
commit 73d9af51ef

View File

@ -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
)