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, PreparedKeyboardButton, UserId};
6
7impl_payload! {
8    /// Use this method to store a keyboard button to be used by the user of a Mini App. Returns a [`PreparedKeyboardButton`] on success.
9    ///
10    /// [`PreparedKeyboardButton`]: crate::types::PreparedKeyboardButton
11    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12    pub SavePreparedKeyboardButton (SavePreparedKeyboardButtonSetters) => PreparedKeyboardButton {
13        required {
14            /// Unique identifier of the target user
15            pub user_id: UserId,
16            /// A JSON-serialized object with the description of the button
17            pub button: KeyboardButton,
18        }
19    }
20}