diff --git a/src/core/requests/get_user_profile_photos.rs b/src/core/requests/get_user_profile_photos.rs index fb69133f..0c6311ec 100644 --- a/src/core/requests/get_user_profile_photos.rs +++ b/src/core/requests/get_user_profile_photos.rs @@ -1,16 +1,19 @@ use crate::core::requests::RequestContext; - -//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. +//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. + /// Sequential number of the first photo to be returned. By default, all + /// photos are returned. offset: Option, - ///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, } diff --git a/src/core/requests/kick_chat_member.rs b/src/core/requests/kick_chat_member.rs index 69c158a8..41d6dbc5 100644 --- a/src/core/requests/kick_chat_member.rs +++ b/src/core/requests/kick_chat_member.rs @@ -1,6 +1,10 @@ use crate::core::requests::RequestContext; //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)] struct KickChatMember<'a> { #[serde(skip_serializing)]