mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +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 = (
|
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…
x
Reference in New Issue
Block a user