use crate::Client;
use crate::errors::Result;
use crate::raw::functions;
impl Client {
pub async fn set_business_account_name(
&self,
business_connection_id: impl Into<String>,
first_name: &str,
last_name: &str,
) -> Result<()> {
let business_connection_id: String = business_connection_id.into();
let request = functions::account::UpdateProfile {
first_name: Some(first_name.into()),
last_name: Some(last_name.into()),
about: None,
};
self.invoke_business(Some(&business_connection_id), request).await?;
Ok(())
}
}