getChatMember
Retrieve detailed information about a specific user in a chat, including their role and permissions. Works reliably when the bot is an administrator in the chat.
Instructions
Get information about a member of a chat. The method is only guaranteed to work for other users 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 @channelusername) | |
| user_id | Yes | Unique identifier of the target user |