savePreparedKeyboardButton
Returns PreparedKeyboardButton ↗
Stores a keyboard button that can be used by a user within a Mini App.
Required: user_id, button
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("save_prepared_keyboard_button", { user_id: 0, button: { /* KeyboardButton */ }})Parameters
user_id number Required
Unique identifier of the target user that can use the button.
button KeyboardButton Required
A JSON-serialized object describing the button to be saved. The button must be of the type request_users, request_chat, or request_managed_bot.