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