replaceManagedBotToken
Revokes a managed bot's current token and generates a replacement, returning the new token. Use it to rotate a bot token when the existing one must be replaced.
Instructions
Use this method to revoke the current token of a managed bot and generate a new one. Returns the new token as String 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": {
"user_id": "<user_id>"
},
"name": "replaceManagedBotToken"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | User identifier of the managed bot whose token will be replaced |