ronami_core/payloads/get_my_commands.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::BotCommand;
6use crate::types::BotCommandScope;
7
8impl_payload! {
9 /// Use this method to get the current list of the bot's commands. Requires no parameters. Returns Array of [`BotCommand`] on success.
10 ///
11 /// [`BotCommand`]: crate::types::BotCommand
12 #[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
13 pub GetMyCommands (GetMyCommandsSetters) => Vec<BotCommand> {
14 optional {
15 /// A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
16 pub scope: BotCommandScope,
17 /// A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands
18 pub language_code: String [into],
19 }
20 }
21}