telegram-api-0.7.1.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).

editMessageLiveLocationM :: EditMessageLiveLocationRequest -> TelegramClient (Response Bool) Source #

Use this method to edit live location messages sent by the bot or via the bot (for inline bots). A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocationM.

stopMessageLiveLocationM :: StopMessageLiveLocationRequest -> TelegramClient (Response Bool) Source #

Use this method to stop updating a live location message sent by the bot or via the bot (for inline bots) before live_period expires.

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)))) :<|> ((TelegramToken :> ("editMessageLiveLocation" :> (ReqBody '[JSON] EditMessageLiveLocationRequest :> Post '[JSON] (Response Bool)))) :<|> (TelegramToken :> ("stopMessageLiveLocation" :> (ReqBody '[JSON] StopMessageLiveLocationRequest :> Post '[JSON] (Response Bool)))))))))) Source #

Telegram Bot API

editApi :: Proxy TelegramBotEditAPI Source #

Proxy for Thelegram Bot API

Types