get_chat_administrators()#
- Client.get_chat_administrators()[source]#
Use this method to get a list of administrators in a chat.
A chat can be either a basic group, a supergroup or a channel. Requires administrator rights in channels.
Usable by ✅ Users ✅ Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.return_bots (
bool, optional) – Pass True to additionally receive all bots that are administrators of the chat. By default, bots other than the current bot are omitted.
- Returns:
List of
ChatMember– On success, a list of ChatMember objects are returned.