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::UserId;
use crate::types::UserProfileAudios;

impl_payload! {
    /// Use this method to get a list of profile audios for a user. Returns a [`UserProfileAudios`] object.
    ///
    /// [`UserProfileAudios`]: crate::types::UserProfileAudios
    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
    pub GetUserProfileAudios (GetUserProfileAudiosSetters) => UserProfileAudios {
        required {
            /// Unique identifier of the target user
            pub user_id: UserId,
        }
        optional {
            /// Sequential number of the first audio to be returned. By default, all audios are returned.
            pub offset: u32,
            /// Limits the number of audios to be retrieved. Values between 1-100 are accepted. Defaults to 100.
            pub limit: u8,
        }
    }
}