Safe Haskell | None |
---|---|
Language | Haskell2010 |
- editMessageText :: Token -> EditMessageTextRequest -> Manager -> IO (Either ServantError MessageResponse)
- editMessageTextM :: EditMessageTextRequest -> TelegramClient MessageResponse
- editMessageCaption :: Token -> EditMessageCaptionRequest -> Manager -> IO (Either ServantError MessageResponse)
- editMessageCaptionM :: EditMessageCaptionRequest -> TelegramClient MessageResponse
- editMessageReplyMarkup :: Token -> EditMessageReplyMarkupRequest -> Manager -> IO (Either ServantError MessageResponse)
- editMessageReplyMarkupM :: EditMessageReplyMarkupRequest -> TelegramClient MessageResponse
- editInlineMessageText :: Token -> EditMessageTextRequest -> Manager -> IO (Either ServantError (Response Bool))
- editInlineMessageTextM :: EditMessageTextRequest -> TelegramClient (Response Bool)
- editInlineMessageCaption :: Token -> EditMessageCaptionRequest -> Manager -> IO (Either ServantError (Response Bool))
- editInlineMessageCaptionM :: EditMessageCaptionRequest -> TelegramClient (Response Bool)
- editInlineMessageReplyMarkup :: Token -> EditMessageReplyMarkupRequest -> Manager -> IO (Either ServantError (Response Bool))
- editInlineMessageReplyMarkupM :: EditMessageReplyMarkupRequest -> TelegramClient (Response Bool)
- 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))))))))
- editApi :: Proxy TelegramBotEditAPI
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.
editMessageTextM :: EditMessageTextRequest -> TelegramClient MessageResponse Source #
See editMessageText
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).
editInlineMessageReplyMarkupM :: EditMessageReplyMarkupRequest -> TelegramClient (Response Bool) Source #
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