mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 23:24:50 +00:00
Clearer documentation for get_chat_members
This commit is contained in:
parent
418740a3e6
commit
1eaafb8e41
1 changed files with 9 additions and 3 deletions
|
|
@ -60,12 +60,18 @@ class GetChatMembers(BaseClient):
|
||||||
|
|
||||||
filter (``str``, *optional*):
|
filter (``str``, *optional*):
|
||||||
Filter used to select the kind of members you want to retrieve. Only applicable for supergroups
|
Filter used to select the kind of members you want to retrieve. Only applicable for supergroups
|
||||||
and channels. It can be any of "all", "kicked", "restricted", "bots", "recent" and "administrators".
|
and channels. It can be any of the followings:
|
||||||
Defaults to "all".
|
*"all"* - all kind of members,
|
||||||
|
*"kicked"* - kicked (banned) members only,
|
||||||
|
*"restricted"* - restricted members only,
|
||||||
|
*"bots"* - bots only,
|
||||||
|
*"recent"* - recent members only,
|
||||||
|
*"administrators"* - chat administrators only.
|
||||||
|
Defaults to *"all"*.
|
||||||
|
|
||||||
.. [1] On supergroups and channels you can get up to 10,000 members for a single query string.
|
.. [1] On supergroups and channels you can get up to 10,000 members for a single query string.
|
||||||
|
|
||||||
.. [2] A query string is applicable only for "all", "kicked" and "restricted" filters only.
|
.. [2] A query string is applicable only for *"all"*, *"kicked"* and *"restricted"* filters only.
|
||||||
"""
|
"""
|
||||||
peer = self.resolve_peer(chat_id)
|
peer = self.resolve_peer(chat_id)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue