teloxide_core/payloads/set_my_description.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 description, which is shown in the chat with the bot if the chat is empty. Returns True on success.
9 #[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
10 pub SetMyDescription (SetMyDescriptionSetters) => True {
11 optional {
12 /// New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for the given language.
13 pub description: String [into],
14 /// A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whose language there is no dedicated description.
15 pub language_code: String [into],
16 }
17 }
18}