mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
add get user profile photos template struct
This commit is contained in:
parent
d9a974472a
commit
ced6bd8e69
1 changed files with 9 additions and 1 deletions
|
@ -1,8 +1,16 @@
|
|||
use crate::core::requests::RequestContext;
|
||||
//TODO:: need implementation
|
||||
|
||||
|
||||
//TODO: complete implementation after user_profile_fotos will be added to types/mod.rs
|
||||
///Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
struct GetUserProfilePhotos<'a> {
|
||||
#[serde(skip_serializing)]
|
||||
ctx: RequestContext<'a>,
|
||||
/// Unique identifier of the target user
|
||||
user_id: i32,
|
||||
/// Sequential number of the first photo to be returned. By default, all photos are returned.
|
||||
offset: Option<i64>,
|
||||
///Limits the number of photos to be retrieved. Values between 1—100 are accepted. Defaults to 100.
|
||||
limit: Option<i64>,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue