actix-telegram 0.0.5

telegram bot api lib based on actix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::types::*;

/// Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
#[derive(Debug, Serialize, TelegramApi, Setters, New)]
#[return_type = "UserProfilePhotos"]
#[new(vis = "pub")]
#[set(vis = "pub")]
pub struct GetUserProfilePhotos {
    /// Unique identifier of the target user
    pub(crate) user_id: Integer,
    /// Sequential number of the first photo to be returned. By default, all photos are returned.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub(crate) offset: Option<Integer>,
    /// Limits the number of photos to be retrieved. Values between 1—100 are accepted. Defaults to 100.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub(crate) limit: Option<Integer>,
}