teloxide_core/payloads/set_business_account_name.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{BusinessConnectionId, True};
6
7impl_payload! {
8 /// Changes the first and last name of a managed business account. Requires the _can_change_name_ business bot right. Returns _true_ on success.
9 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10 pub SetBusinessAccountName (SetBusinessAccountNameSetters) => True {
11 required {
12 /// Unique identifier of the business connection
13 pub business_connection_id: BusinessConnectionId,
14 /// The new value of the first name for the business account; 1-64 characters
15 pub first_name: String [into],
16 }
17 optional {
18 /// The new value of the last name for the business account; 0-64 characters
19 pub last_name: String [into],
20 }
21 }
22}