Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data EditMessageTextRequest = EditMessageTextRequest {
- editMessageTextChatId :: Maybe SomeChatId
- editMessageTextMessageId :: Maybe MessageId
- editMessageTextInlineMessageId :: Maybe MessageId
- editMessageTextText :: Text
- editMessageTextParseMode :: Maybe ParseMode
- editMessageEntities :: Maybe [MessageEntity]
- editMessageTextDisableWebPagePreview :: Maybe Bool
- editMessageTextReplyMarkup :: Maybe SomeReplyMarkup
- data EditMessageCaptionRequest = EditMessageCaptionRequest {
- editMessageCaptionChatId :: Maybe SomeChatId
- editMessageCaptionMessageId :: Maybe MessageId
- editMessageCaptionInlineMessageId :: Maybe MessageId
- editMessageCaptionCaption :: Maybe Text
- editMessageCaptionParseMode :: Maybe ParseMode
- editMessageCaptionCaptionEntities :: Maybe [MessageEntity]
- editMessageCaptionReplyMarkup :: Maybe SomeReplyMarkup
- data EditMessageMediaRequest = EditMessageMediaRequest {}
- data EditMessageReplyMarkupRequest = EditMessageReplyMarkupRequest {}
- data StopPollRequest = StopPollRequest {}
- type EditMessageText = "editMessageText" :> (ReqBody '[JSON] EditMessageTextRequest :> Post '[JSON] (Response (Either Bool Message)))
- editMessageText :: EditMessageTextRequest -> ClientM (Response (Either Bool Message))
- type EditMessageCaption = "editMessageCaption" :> (ReqBody '[JSON] EditMessageCaptionRequest :> Post '[JSON] (Response (Either Bool Message)))
- editMessageCaption :: EditMessageCaptionRequest -> ClientM (Response (Either Bool Message))
- type EditMessageMedia = "editMessageMedia" :> (ReqBody '[JSON] EditMessageMediaRequest :> Post '[JSON] (Response (Either Bool Message)))
- editMessageMedia :: EditMessageMediaRequest -> ClientM (Response (Either Bool Message))
- type EditMessageReplyMarkup = "editMessageReplyMarkup" :> (ReqBody '[JSON] EditMessageReplyMarkupRequest :> Post '[JSON] (Response (Either Bool Message)))
- editMessageReplyMarkup :: EditMessageReplyMarkupRequest -> ClientM (Response (Either Bool Message))
- type StopPoll = "stopPoll" :> (ReqBody '[JSON] StopPollRequest :> Post '[JSON] (Response Poll))
- stopPoll :: StopPollRequest -> ClientM (Response Poll)
editMessageText
data EditMessageTextRequest Source #
Request parameters for editMessageText
.
EditMessageTextRequest | |
|
Instances
data EditMessageCaptionRequest Source #
Request parameters for editMessageCaption
.
EditMessageCaptionRequest | |
|
Instances
data EditMessageMediaRequest Source #
Request parameters for editMessageMedia
.
EditMessageMediaRequest | |
|
Instances
data EditMessageReplyMarkupRequest Source #
Request parameters for editMessageReplyMarkup
.
EditMessageReplyMarkupRequest | |
|
Instances
data StopPollRequest Source #
Request parameters for stopPoll
.
StopPollRequest | |
|
Instances
type EditMessageText = "editMessageText" :> (ReqBody '[JSON] EditMessageTextRequest :> Post '[JSON] (Response (Either Bool Message))) Source #
editMessageText :: EditMessageTextRequest -> ClientM (Response (Either Bool Message)) Source #
type EditMessageCaption = "editMessageCaption" :> (ReqBody '[JSON] EditMessageCaptionRequest :> Post '[JSON] (Response (Either Bool Message))) Source #
editMessageCaption :: EditMessageCaptionRequest -> ClientM (Response (Either Bool Message)) Source #
Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
type EditMessageMedia = "editMessageMedia" :> (ReqBody '[JSON] EditMessageMediaRequest :> Post '[JSON] (Response (Either Bool Message))) Source #
editMessageMedia :: EditMessageMediaRequest -> ClientM (Response (Either Bool Message)) Source #
Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
type EditMessageReplyMarkup = "editMessageReplyMarkup" :> (ReqBody '[JSON] EditMessageReplyMarkupRequest :> Post '[JSON] (Response (Either Bool Message))) Source #
editMessageReplyMarkup :: EditMessageReplyMarkupRequest -> ClientM (Response (Either Bool Message)) Source #
Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.