{-# LANGUAGE DataKinds #-}{-# LANGUAGE DeriveGeneric #-}{-# LANGUAGE TypeApplications #-}{-# LANGUAGE TypeOperators #-}module Telegram.Bot.API.Methods.GetMyDescription whereimport Data.Aeson (FromJSON (..), ToJSON (..))import Data.Proxyimport GHC.Generics (Generic)import Data.Text (Text)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-- ** 'GetMyDescription'newtype GetMyDescriptionRequest = GetMyDescriptionRequest { getMyDescriptionLanguageCode :: Maybe Text -- ^ A two-letter ISO 639-1 language code or an empty string. } deriving Genericinstance ToJSON GetMyDescriptionRequest where toJSON = gtoJSONinstance FromJSON GetMyDescriptionRequest where parseJSON = gparseJSONtype GetMyDescription = "getMyDescription" :> ReqBody '[JSON] GetMyDescriptionRequest :> Post '[JSON] (Response BotDescription)-- | Use this method to get the current bot description for the given user language.-- Returns 'BotDescription' on success.getMyDescription :: GetMyDescriptionRequest -> ClientM (Response BotDescription)getMyDescription = client (Proxy @GetMyDescription)makeDefault ''GetMyDescriptionRequest