teloxide_core/payloads/
get_user_profile_photos.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{UserId, UserProfilePhotos};
6
7impl_payload! {
8    /// Use this method to get a list of profile pictures for a user. Returns a [`UserProfilePhotos`] object.
9    ///
10    /// [`UserProfilePhotos`]: crate::types::UserProfilePhotos
11    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12    pub GetUserProfilePhotos (GetUserProfilePhotosSetters) => UserProfilePhotos {
13        required {
14            /// Unique identifier of the target user
15            pub user_id: UserId,
16        }
17        optional {
18            /// Sequential number of the first photo to be returned. By default, all photos are returned.
19            pub offset: u32,
20            /// Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
21            pub limit: u8,
22        }
23    }
24}