Skip to main content

ronami_core/payloads/
get_chat_menu_button.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::ChatId;
6use crate::types::MenuButton;
7
8impl_payload! {
9    /// Use this method to get the current value of the bot's menu button in a private chat, or the default menu button.
10    #[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
11    pub GetChatMenuButton (GetChatMenuButtonSetters) => MenuButton {
12        optional {
13            /// Unique identifier for the target private chat. If not specified, default bot's menu button will be returned
14            pub chat_id: ChatId [into],
15        }
16    }
17}