Skip to content

Commit 33d04b5

Browse files
committed
Change default get/iter_chat_members filter to "recent"
1 parent 6a5469e commit 33d04b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyrogram/methods/chats/get_chat_members.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def get_chat_members(
4242
offset: int = 0,
4343
limit: int = 200,
4444
query: str = "",
45-
filter: str = Filters.ALL
45+
filter: str = Filters.RECENT
4646
) -> List["types.ChatMember"]:
4747
"""Get a chunk of the members list of a chat.
4848
@@ -78,7 +78,7 @@ async def get_chat_members(
7878
*"recent"* - recent members only,
7979
*"administrators"* - chat administrators only.
8080
Only applicable to supergroups and channels.
81-
Defaults to *"all"*.
81+
Defaults to *"recent"*.
8282
8383
.. [1] Server limit: on supergroups, you can get up to 10,000 members for a single query and up to 200 members
8484
on channels.

pyrogram/methods/chats/iter_chat_members.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def iter_chat_members(
4343
chat_id: Union[int, str],
4444
limit: int = 0,
4545
query: str = "",
46-
filter: str = Filters.ALL
46+
filter: str = Filters.RECENT
4747
) -> Optional[AsyncGenerator["types.ChatMember", None]]:
4848
"""Iterate through the members of a chat sequentially.
4949
@@ -72,7 +72,7 @@ async def iter_chat_members(
7272
*"bots"* - bots only,
7373
*"recent"* - recent members only,
7474
*"administrators"* - chat administrators only.
75-
Defaults to *"all"*.
75+
Defaults to *"recent"*.
7676
7777
Returns:
7878
``Generator``: A generator yielding :obj:`~pyrogram.types.ChatMember` objects.

0 commit comments

Comments
 (0)