Skip to main content

ronami_core/payloads/
set_business_account_username.rs

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