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