max_mock_update
Generate a realistic MAX webhook Update for tests, shaped like the official schema, plus a curl command to send it to your local webhook. Lets you test a bot before it passes moderation or without a token.
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": {
"update_type": "<update_type>"
},
"name": "max_mock_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Answer language: 'en' English, 'ru' Russian. Pick the user's language; default ru (or XONTA_MAX_LANG) | |
| text | No | Message text (message_created/edited, comments) or new title | |
| secret | No | Webhook secret to put into X-Max-Bot-Api-Secret | |
| chat_id | No | Chat id; default is generated | |
| payload | No | Callback payload or bot_started deep link payload | |
| chat_type | No | Where it happens | dialog |
| overrides | No | Deep-merge into the generated update | |
| update_type | Yes | message_created, message_callback, bot_started, bot_added, bot_removed, message_edited, message_removed, user_added, user_removed, comment_created, chat_title_changed, dialog_muted, bot_admin_permissions_changed, … | |
| webhook_url | No | If set, also returns a curl command that POSTs the update there |