{-# LANGUAGE DataKinds #-}{-# LANGUAGE DeriveGeneric #-}{-# LANGUAGE TypeApplications #-}{-# LANGUAGE TypeOperators #-}module Telegram.Bot.API.Methods.GetUserProfilePhotos whereimport Data.Aeson (FromJSON (..), ToJSON (..))import Data.Proxyimport GHC.Generics (Generic)import Servant.APIimport Servant.Client hiding (Response)import Telegram.Bot.API.Internal.Utilsimport Telegram.Bot.API.MakingRequestsimport Telegram.Bot.API.Typesimport Telegram.Bot.API.Internal.TH-- ** 'getUserProfilePhotos'-- | Request parameters for 'getUserProfilePhotos'.data GetUserProfilePhotosRequest = GetUserProfilePhotosRequest { getUserProfilePhotosUserId :: UserId -- ^ Unique identifier of the target user , getUserProfilePhotosOffset :: Maybe Int -- ^ Sequential number of the first photo to be returned. By default, all photos are returned. , getUserProfilePhotosLimit :: Maybe Int -- ^ Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100. } deriving Genericinstance ToJSON GetUserProfilePhotosRequest where toJSON = gtoJSONinstance FromJSON GetUserProfilePhotosRequest where parseJSON = gparseJSONtype GetUserProfilePhotos = "getUserProfilePhotos" :> ReqBody '[JSON] GetUserProfilePhotosRequest :> Post '[JSON] (Response UserProfilePhotos)-- | Use this method to get a list of profile pictures for a user.-- Returns a UserProfilePhotos object.getUserProfilePhotos :: GetUserProfilePhotosRequest -> ClientM (Response UserProfilePhotos)getUserProfilePhotos = client (Proxy @GetUserProfilePhotos)makeDefault ''GetUserProfilePhotosRequest