telegram_bots_api/api/params/
set_chat_menu_button.rs

1use crate::api::enums::chat_uid::ChatUId;
2use crate::api::enums::menu_button::MenuButton;
3use serde::Serialize;
4
5/// <https://core.telegram.org/bots/api#setchatmenubutton>
6/// Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success.
7#[derive(Debug, Serialize, Default)]
8pub struct SetChatMenuButton {
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub chat_id: Option<ChatUId>,
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub menu_button: Option<MenuButton>,
13}