There was an error while loading. Please reload this page.
1 parent 6a5469e commit 33d04b5Copy full SHA for 33d04b5
2 files changed
pyrogram/methods/chats/get_chat_members.py
@@ -42,7 +42,7 @@ async def get_chat_members(
42
offset: int = 0,
43
limit: int = 200,
44
query: str = "",
45
- filter: str = Filters.ALL
+ filter: str = Filters.RECENT
46
) -> List["types.ChatMember"]:
47
"""Get a chunk of the members list of a chat.
48
@@ -78,7 +78,7 @@ async def get_chat_members(
78
*"recent"* - recent members only,
79
*"administrators"* - chat administrators only.
80
Only applicable to supergroups and channels.
81
- Defaults to *"all"*.
+ Defaults to *"recent"*.
82
83
.. [1] Server limit: on supergroups, you can get up to 10,000 members for a single query and up to 200 members
84
on channels.
pyrogram/methods/chats/iter_chat_members.py
@@ -43,7 +43,7 @@ async def iter_chat_members(
chat_id: Union[int, str],
limit: int = 0,
) -> Optional[AsyncGenerator["types.ChatMember", None]]:
"""Iterate through the members of a chat sequentially.
49
@@ -72,7 +72,7 @@ async def iter_chat_members(
72
*"bots"* - bots only,
73
74
75
76
77
Returns:
``Generator``: A generator yielding :obj:`~pyrogram.types.ChatMember` objects.
0 commit comments