teloxide_core/payloads/
get_my_name.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::BotName;
6
7impl_payload! {
8    /// Use this method to get the current bot name for the given user language. Returns [`BotName`] on success.
9    ///
10    /// [`BotName`]: crate::types::BotName
11    #[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
12    pub GetMyName (GetMyNameSetters) => BotName {
13        optional {
14            /// A two-letter ISO 639-1 language code or an empty string
15            pub language_code: String [into],
16        }
17    }
18}