ronami-core 1.5.0

Core part of the `ronami` library — Telegram Bot API client
Documentation
//! Generated by `codegen_payloads`, do not edit by hand.

use serde::Serialize;

use crate::types::BusinessConnectionId;
use crate::types::True;

impl_payload! {
    /// Changes the first and last name of a managed business account. Requires the _can_change_name_ business bot right. Returns _true_ on success.
    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
    pub SetBusinessAccountName (SetBusinessAccountNameSetters) => True {
        required {
            /// Unique identifier of the business connection
            pub business_connection_id: BusinessConnectionId,
            /// The new value of the first name for the business account; 1-64 characters
            pub first_name: String [into],
        }
        optional {
            /// The new value of the last name for the business account; 0-64 characters
            pub last_name: String [into],
        }
    }
}