Skip to content

savePreparedKeyboardButton

Stores a keyboard button that can be used by a user within a Mini App. Returns a PreparedKeyboardButton object.

Parameters

user_idIntegerRequired
Unique identifier of the target user that can use the button
buttonKeyboardButtonRequired
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.

Returns

On success, the PreparedKeyboardButton object is returned.

GramIO Usage

Errors

Tips & Gotchas

See Also