teloxide_core/payloads/
set_my_name.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::True;
6
7impl_payload! {
8    /// Use this method to change the bot's name. Returns True on success.
9    #[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
10    pub SetMyName (SetMyNameSetters) => True {
11        optional {
12            /// New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language.
13            pub name: String [into],
14            /// A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name.
15            pub language_code: String [into],
16        }
17    }
18}