peyk.platforms.telegram.methods.save_prepared_keyboard_button

async peyk.platforms.telegram.methods.save_prepared_keyboard_button(self, user_id: int, button: KeyboardButton) object

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

Parameters:
  • user_id – Unique identifier of the target user that can use the button

  • button – 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.