teloxide_core/payloads/
set_business_account_bio.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 bio of a managed business account. Requires the _can_change_bio_ business bot right. Returns _true_ on success.
9    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10    pub SetBusinessAccountBio (SetBusinessAccountBioSetters) => True {
11        required {
12            /// Unique identifier of the business connection
13            pub business_connection_id: BusinessConnectionId,
14        }
15        optional {
16            /// The new value of the bio for the business account; 0-140 characters
17            pub bio: String [into],
18        }
19    }
20}