{-# LANGUAGE DataKinds #-}{-# LANGUAGE DeriveGeneric #-}{-# LANGUAGE TypeApplications #-}{-# LANGUAGE TypeOperators #-}module Telegram.Bot.API.Methods.SetStickerKeywords 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.TH-- ** 'setStickerKeywords'-- | Request parameters for 'setStickerKeywords'.data SetStickerKeywordsRequest = SetStickerKeywordsRequest { setStickerKeywordsSticker :: Text -- ^ File identifier of the sticker , setStickerKeywordsKeywords :: Maybe [Text] -- ^ A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characters } deriving Genericinstance ToJSON SetStickerKeywordsRequest where toJSON = gtoJSONinstance FromJSON SetStickerKeywordsRequest where parseJSON = gparseJSONtype SetStickerKeywords = "setStickerKeywords" :> ReqBody '[JSON] SetStickerKeywordsRequest :> Post '[JSON] (Response Bool)-- | Use this method to change search keywords-- assigned to a regular or custom emoji sticker.-- The sticker must belong to a sticker set created by the bot.-- Returns 'True' on success.setStickerKeywords :: SetStickerKeywordsRequest -> ClientM (Response Bool)setStickerKeywords = client (Proxy @SetStickerKeywords)makeDefault ''SetStickerKeywordsRequest