{-# LANGUAGE DataKinds #-}{-# LANGUAGE DeriveGeneric #-}{-# LANGUAGE TypeApplications #-}{-# LANGUAGE TypeOperators #-}module Telegram.Bot.API.Methods.SetStickerMaskPosition whereimport Data.Aeson (FromJSON (..), ToJSON (..))import Data.Proxyimport Data.Textimport GHC.Generics (Generic)import Servant.APIimport Servant.Client hiding (Response)import Telegram.Bot.API.Internal.Utilsimport Telegram.Bot.API.MakingRequestsimport Telegram.Bot.API.Internal.THimport Telegram.Bot.API.Types-- ** 'setStickerMaskPosition'-- | Request parameters for 'setStickerMaskPosition'.data SetStickerMaskPositionRequest = SetStickerMaskPositionRequest { setStickerMaskPositionSticker :: Text -- ^ File identifier of the sticker , setStickerMaskPositionMaskPosition :: Maybe [MaskPosition] -- ^ A JSON-serialized object with the position where the mask should be placed on faces. Omit the parameter to remove the mask position. } deriving Genericinstance ToJSON SetStickerMaskPositionRequest where toJSON = gtoJSONinstance FromJSON SetStickerMaskPositionRequest where parseJSON = gparseJSONtype SetStickerMaskPosition = "setStickerMaskPosition" :> ReqBody '[JSON] SetStickerMaskPositionRequest :> Post '[JSON] (Response Bool)-- | Use this method to change the mask position of a mask sticker.-- The sticker must belong to a sticker set that was created by the bot.-- Returns 'True' on success.setStickerMaskPosition :: SetStickerMaskPositionRequest -> ClientM (Response Bool)setStickerMaskPosition = client (Proxy @SetStickerMaskPosition)makeDefault ''SetStickerMaskPositionRequest