packages feed

telegram-bot-api-7.4.2 / src / Telegram / Bot / API / Methods / SetStickerSetTitle.hs

{-# LANGUAGE DataKinds #-}{-# LANGUAGE DeriveGeneric #-}{-# LANGUAGE TypeApplications #-}{-# LANGUAGE TypeOperators #-}module Telegram.Bot.API.Methods.SetStickerSetTitle whereimport Data.Proxyimport Data.Textimport Servant.APIimport Servant.Client hiding (Response)import Telegram.Bot.API.MakingRequestsimport Telegram.Bot.API.Types-- ** 'setStickerSetTitle'type SetStickerSetTitle = "setStickerSetTitle"    :> RequiredQueryParam "name" Text    :> RequiredQueryParam "title" Text    :> Post '[JSON] (Response Bool)-- | Use this method to set the title of a created sticker set.--   Returns True on success.setStickerSetTitle :: Text -- ^ Sticker set name  -> Text -- ^ Sticker set title, 1-64 characters  -> ClientM (Response Bool)setStickerSetTitle = client (Proxy @SetStickerSetTitle)