Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type SendMessage = "sendMessage" :> (ReqBody '[JSON] SendMessageRequest :> Post '[JSON] (Response Message))
- sendMessage :: SendMessageRequest -> ClientM (Response Message)
- data SendMessageRequest = SendMessageRequest {
- sendMessageChatId :: SomeChatId
- sendMessageMessageThreadId :: Maybe MessageThreadId
- sendMessageText :: Text
- sendMessageParseMode :: Maybe ParseMode
- sendMessageEntities :: Maybe [MessageEntity]
- sendMessageDisableWebPagePreview :: Maybe Bool
- sendMessageDisableNotification :: Maybe Bool
- sendMessageProtectContent :: Maybe Bool
- sendMessageReplyToMessageId :: Maybe MessageId
- sendMessageAllowSendingWithoutReply :: Maybe Bool
- sendMessageReplyMarkup :: Maybe SomeReplyMarkup
sendMessage
type SendMessage = "sendMessage" :> (ReqBody '[JSON] SendMessageRequest :> Post '[JSON] (Response Message)) Source #
sendMessage :: SendMessageRequest -> ClientM (Response Message) Source #
Use this method to send text messages.
On success, the sent Message
is returned.
data SendMessageRequest Source #
Request parameters for sendMessage
.
SendMessageRequest | |
|