Skip to main content

ronami_core/payloads/
save_prepared_keyboard_button.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::KeyboardButton;
6use crate::types::PreparedKeyboardButton;
7use crate::types::UserId;
8
9impl_payload! {
10    /// Use this method to store a keyboard button to be used by the user of a Mini App. Returns a [`PreparedKeyboardButton`] on success.
11    ///
12    /// [`PreparedKeyboardButton`]: crate::types::PreparedKeyboardButton
13    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
14    pub SavePreparedKeyboardButton (SavePreparedKeyboardButtonSetters) => PreparedKeyboardButton {
15        required {
16            /// Unique identifier of the target user
17            pub user_id: UserId,
18            /// A JSON-serialized object with the description of the button
19            pub button: KeyboardButton,
20        }
21    }
22}