teloxide-fork-core 0.14.0

Core part of the `teloxide` library - telegram bot API client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Generated by `codegen_payloads`, do not edit by hand.

use serde::Serialize;

use crate::types::{KeyboardButton, PreparedKeyboardButton, UserId};

impl_payload! {
    /// Stores a keyboard button that can be used by a user within a Mini App. Returns a PreparedKeyboardButton object.
    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
    pub SavePreparedKeyboardButton (SavePreparedKeyboardButtonSetters) => PreparedKeyboardButton {
        required {
            /// Unique identifier of the target user
            pub user_id: UserId,
            /// The button to store
            pub button: KeyboardButton,
        }
    }
}