mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-31 16:40:37 +01:00
cargo fmt for requests/*
This commit is contained in:
parent
cb5ea4a5b7
commit
f4b9e93447
2 changed files with 13 additions and 6 deletions
|
@ -1,16 +1,19 @@
|
||||||
use crate::core::requests::RequestContext;
|
use crate::core::requests::RequestContext;
|
||||||
|
|
||||||
|
//TODO: complete implementation after user_profile_fotos will be added to
|
||||||
//TODO: complete implementation after user_profile_fotos will be added to types/mod.rs
|
// types/mod.rs
|
||||||
///Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
|
///Use this method to get a list of profile pictures for a user. Returns a
|
||||||
|
/// UserProfilePhotos object.
|
||||||
#[derive(Debug, Clone, Serialize)]
|
#[derive(Debug, Clone, Serialize)]
|
||||||
struct GetUserProfilePhotos<'a> {
|
struct GetUserProfilePhotos<'a> {
|
||||||
#[serde(skip_serializing)]
|
#[serde(skip_serializing)]
|
||||||
ctx: RequestContext<'a>,
|
ctx: RequestContext<'a>,
|
||||||
/// Unique identifier of the target user
|
/// Unique identifier of the target user
|
||||||
user_id: i32,
|
user_id: i32,
|
||||||
/// Sequential number of the first photo to be returned. By default, all photos are returned.
|
/// Sequential number of the first photo to be returned. By default, all
|
||||||
|
/// photos are returned.
|
||||||
offset: Option<i64>,
|
offset: Option<i64>,
|
||||||
///Limits the number of photos to be retrieved. Values between 1—100 are accepted. Defaults to 100.
|
///Limits the number of photos to be retrieved. Values between 1—100 are
|
||||||
|
/// accepted. Defaults to 100.
|
||||||
limit: Option<i64>,
|
limit: Option<i64>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
use crate::core::requests::RequestContext;
|
use crate::core::requests::RequestContext;
|
||||||
//TODO:: need implementation
|
//TODO:: need implementation
|
||||||
|
/// Use this method to kick a user from a group, a supergroup or a channel. In
|
||||||
|
/// the case of supergroups and channels, the user will not be able to return to
|
||||||
|
/// the group on their own using invite links, etc., unless unbanned first. The
|
||||||
|
/// bot must be an administrator in the chat for this to work and must have the
|
||||||
|
/// appropriate admin rights. Returns True on success.
|
||||||
#[derive(Debug, Clone, Serialize)]
|
#[derive(Debug, Clone, Serialize)]
|
||||||
struct KickChatMember<'a> {
|
struct KickChatMember<'a> {
|
||||||
#[serde(skip_serializing)]
|
#[serde(skip_serializing)]
|
||||||
|
|
Loading…
Reference in a new issue