getChatMember
Retrieve details about a chat member using chat and user IDs; works when the bot is an administrator.
Instructions
Use this method to get information about a member of a chat. The method is guaranteed to work only if the bot is an administrator in the chat. Returns a ChatMember object on success.
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>",
"user_id": "<user_id>"
},
"name": "getChatMember"
}
}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 | |
| user_id | Yes | Unique identifier of the target user |