getChatAdministrators
Retrieves the list of administrators in a Telegram chat or channel, including optional bot admins, so you can inspect roles and manage permissions.
Instructions
Use this method to get a list of administrators in a chat. Returns an Array of ChatMember objects.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>"
},
"name": "getChatAdministrators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target supergroup or channel in the format `@username` | |
| return_bots | No | Pass True to additionally receive all bots that are administrators of the chat. By default, bots other than the current bot are omitted. |