Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data EditMessageResponse
- 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 EditMessageResponse))
- editMessageText :: EditMessageTextRequest -> ClientM (Response EditMessageResponse)
- type EditMessageCaption = "editMessageCaption" :> (ReqBody '[JSON] EditMessageCaptionRequest :> Post '[JSON] (Response EditMessageResponse))
- editMessageCaption :: EditMessageCaptionRequest -> ClientM (Response EditMessageResponse)
- type EditMessageMedia = "editMessageMedia" :> (ReqBody '[JSON] EditMessageMediaRequest :> Post '[JSON] (Response EditMessageResponse))
- editMessageMedia :: EditMessageMediaRequest -> ClientM (Response EditMessageResponse)
- type EditMessageReplyMarkup = "editMessageReplyMarkup" :> (ReqBody '[JSON] EditMessageReplyMarkupRequest :> Post '[JSON] (Response EditMessageResponse))
- editMessageReplyMarkup :: EditMessageReplyMarkupRequest -> ClientM (Response EditMessageResponse)
- type StopPoll = "stopPoll" :> (ReqBody '[JSON] StopPollRequest :> Post '[JSON] (Response Poll))
- stopPoll :: StopPollRequest -> ClientM (Response Poll)
Documentation
data EditMessageResponse Source #
Instances
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 EditMessageResponse)) Source #
type EditMessageCaption = "editMessageCaption" :> (ReqBody '[JSON] EditMessageCaptionRequest :> Post '[JSON] (Response EditMessageResponse)) Source #
editMessageCaption :: EditMessageCaptionRequest -> ClientM (Response EditMessageResponse) 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 EditMessageResponse)) Source #
editMessageMedia :: EditMessageMediaRequest -> ClientM (Response EditMessageResponse) 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 EditMessageResponse)) Source #
editMessageReplyMarkup :: EditMessageReplyMarkupRequest -> ClientM (Response EditMessageResponse) 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.