savePreparedKeyboardButton
Stores a keyboard button for a specific user to use within a Mini App, returning a PreparedKeyboardButton object. Use it to prepare request_users, request_chat, or request_managed_bot buttons.
Instructions
Stores a keyboard button that can be used by a user within a Mini App. Returns a PreparedKeyboardButton object.
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>",
"button": "<button>"
},
"name": "savePreparedKeyboardButton"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | Yes | An object describing the button to be saved. The button must be of the type request_users, request_chat, or request_managed_bot | |
| user_id | Yes | Unique identifier of the target user that can use the button |