Bound method get_members of
Use as a shortcut for:
int, optional) – Sequential number of the first member to be returned. Only applicable to supergroups and channels. Defaults to 0 1.
int, optional) – Limits the number of members to be retrieved. Only applicable to supergroups and channels. Defaults to 200, which is also the maximum server limit allowed per method call.
str, optional) – Query string to filter members based on their display names and usernames. Only applicable to supergroups and channels. Defaults to “” (empty string) 2.
str, optional) – Filter used to select the kind of members you want to retrieve. Only applicable for supergroups and channels. It can be any of the followings: “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. Only applicable to supergroups and channels. Defaults to “recent”.
Server limit: on supergroups, you can get up to 10,000 members for a single query and up to 200 members on channels.
A query string is applicable only for “all”, “kicked” and “restricted” filters only.
# Get first 200 recent members chat.get_members() # Get all administrators chat.get_members(filter="administrators") # Get all bots chat.get_members(filter="bots")
ChatMember– On success, a list of chat members is returned.