Skip to main content

ronami_core/payloads/
delete_my_commands.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::BotCommandScope;
6use crate::types::True;
7
8impl_payload! {
9    /// Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, [higher level commands] will be shown to affected users. Returns _True_ on success.
10    ///
11    /// [higher level commands]: https://core.telegram.org/bots/api#determining-list-of-commands
12    #[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
13    pub DeleteMyCommands (DeleteMyCommandsSetters) => True {
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}