teloxide_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, MenuButton};
6
7impl_payload! {
8 /// Use this method to get the current value of 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 GetChatMenuButton (GetChatMenuButtonSetters) => MenuButton {
11 optional {
12 /// Unique identifier for the target private chat. If not specified, default bot's menu button will be returned
13 pub chat_id: ChatId [into],
14 }
15 }
16}