Skip to main content

ronami_core/payloads/
set_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;
7use crate::types::True;
8
9impl_payload! {
10    /// Use this method to change the bot's menu button in a private chat, or the default menu button.
11    #[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
12    pub SetChatMenuButton (SetChatMenuButtonSetters) => True {
13        optional {
14            /// Unique identifier for the target private chat. If not specified, default bot's menu button will be changed.
15            pub chat_id: ChatId [into],
16            /// An object for the new bot's menu button. Defaults to MenuButtonDefault
17            pub menu_button: MenuButton,
18        }
19    }
20}