teloxide_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, True};
6
7impl_payload! {
8 /// 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.
9 ///
10 /// [higher level commands]: https://core.telegram.org/bots/api#determining-list-of-commands
11 #[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
12 pub DeleteMyCommands (DeleteMyCommandsSetters) => True {
13 optional {
14 /// A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
15 pub scope: BotCommandScope,
16 /// 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
17 pub language_code: String [into],
18 }
19 }
20}