telegram-api-0.6.2.0: Telegram Bot API bindings

Safe HaskellNone
LanguageHaskell2010

Web.Telegram.API.Bot.API.Edit

Contents

Synopsis

Functions

editMessageText :: Token -> EditMessageTextRequest -> Manager -> IO (Either ServantError MessageResponse) Source #

Use this method to edit text messages sent by the bot. On success, the edited Message is returned, otherwise True is returned.

editMessageCaption :: Token -> EditMessageCaptionRequest -> Manager -> IO (Either ServantError MessageResponse) Source #

Use this method to edit captions of messages sent by the bot. On success, the edited Message is returned.

editMessageReplyMarkup :: Token -> EditMessageReplyMarkupRequest -> Manager -> IO (Either ServantError MessageResponse) Source #

Use this method to edit only the reply markup of messages sent by the bot. On success, the edited Message is returned.

editInlineMessageText :: Token -> EditMessageTextRequest -> Manager -> IO (Either ServantError (Response Bool)) Source #

Use this method to edit text messages sent via the bot (for inline bots).

editInlineMessageCaption :: Token -> EditMessageCaptionRequest -> Manager -> IO (Either ServantError (Response Bool)) Source #

Use this method to edit captions of messages sent via the bot (for inline bots).

editInlineMessageReplyMarkup :: Token -> EditMessageReplyMarkupRequest -> Manager -> IO (Either ServantError (Response Bool)) Source #

Use this method to edit only the reply markup of messages sent via the bot (for inline bots).

API

type TelegramBotEditAPI = (TelegramToken :> ("editMessageText" :> (ReqBody '[JSON] EditMessageTextRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("editMessageCaption" :> (ReqBody '[JSON] EditMessageCaptionRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("editMessageReplyMarkup" :> (ReqBody '[JSON] EditMessageReplyMarkupRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("editMessageText" :> (ReqBody '[JSON] EditMessageTextRequest :> Post '[JSON] (Response Bool)))) :<|> ((TelegramToken :> ("editMessageCaption" :> (ReqBody '[JSON] EditMessageCaptionRequest :> Post '[JSON] (Response Bool)))) :<|> (TelegramToken :> ("editMessageReplyMarkup" :> (ReqBody '[JSON] EditMessageReplyMarkupRequest :> Post '[JSON] (Response Bool)))))))) Source #

Telegram Bot API

editApi :: Proxy TelegramBotEditAPI Source #

Proxy for Thelegram Bot API

Types