Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains data objects which represents requests to Telegram Bot API
- data SendMessageRequest = SendMessageRequest {}
- data ForwardMessageRequest = ForwardMessageRequest {}
- data FileUpload = FileUpload {}
- data FileUploadContent
- data SendPhotoRequest payload = SendPhotoRequest {}
- data SendAudioRequest = SendAudioRequest {}
- data SendDocumentRequest = SendDocumentRequest {}
- data SendStickerRequest = SendStickerRequest {}
- data SendVideoRequest = SendVideoRequest {}
- data SendVoiceRequest = SendVoiceRequest {}
- data SendLocationRequest = SendLocationRequest {}
- data SendVenueRequest = SendVenueRequest {}
- data SendContactRequest = SendContactRequest {}
- data SendChatActionRequest = SendChatActionRequest {}
- data ChatAction
- data AnswerInlineQueryRequest = AnswerInlineQueryRequest {}
- data AnswerCallbackQueryRequest = AnswerCallbackQueryRequest {}
- data ReplyKeyboard
- = ReplyKeyboardMarkup { }
- | ReplyKeyboardHide { }
- | ForceReply { }
- data EditMessageTextRequest = EditMessageTextRequest {}
- data EditMessageCaptionRequest = EditMessageCaptionRequest {}
- data EditMessageReplyMarkupRequest = EditMessageReplyMarkupRequest {}
- sendMessageRequest :: Text -> Text -> SendMessageRequest
- forwardMessageRequest :: Text -> Text -> Int -> ForwardMessageRequest
- sendPhotoRequest :: Text -> Text -> SendPhotoRequest Text
- uploadPhotoRequest :: Text -> FileUpload -> SendPhotoRequest FileUpload
- sendAudioRequest :: Text -> Text -> SendAudioRequest
- sendDocumentRequest :: Text -> Text -> SendDocumentRequest
- sendStickerRequest :: Text -> Text -> SendStickerRequest
- sendVideoRequest :: Text -> Text -> SendVideoRequest
- sendVoiceRequest :: Text -> Text -> SendVoiceRequest
- sendLocationRequest :: Text -> Float -> Float -> SendLocationRequest
- sendVenueRequest :: Text -> Float -> Float -> Text -> Text -> SendVenueRequest
- sendContactRequest :: Text -> Text -> Text -> SendContactRequest
- sendChatActionRequest :: Text -> ChatAction -> SendChatActionRequest
- answerInlineQueryRequest :: Text -> [InlineQueryResult] -> AnswerInlineQueryRequest
- answerCallbackQueryRequest :: Text -> AnswerCallbackQueryRequest
- replyKeyboardMarkup :: [[KeyboardButton]] -> ReplyKeyboard
- replyKeyboardHide :: ReplyKeyboard
- forceReply :: ReplyKeyboard
- editMessageTextRequest :: Text -> Int -> Text -> EditMessageTextRequest
- editMessageCaptionRequest :: Text -> Int -> Maybe Text -> EditMessageCaptionRequest
- editMessageReplyMarkupRequest :: Text -> Int -> Maybe InlineKeyboardMarkup -> EditMessageReplyMarkupRequest
Types
data SendMessageRequest Source
This object represents request for sendMessage
SendMessageRequest | |
|
data ForwardMessageRequest Source
This object represents request for forwardMessage
ForwardMessageRequest | |
|
data FileUpload Source
This object represents data (image, video, ...) with mime type to upload.
FileUpload | |
|
data FileUploadContent Source
This object represents data (image, video, ...) to upload.
data SendPhotoRequest payload Source
This object represents request for sendPhoto
SendPhotoRequest | |
|
Show payload => Show (SendPhotoRequest payload) Source | |
Generic (SendPhotoRequest payload) Source | |
ToJSON (SendPhotoRequest Text) Source | |
FromJSON (SendPhotoRequest Text) Source | |
type Rep (SendPhotoRequest payload) Source |
data SendAudioRequest Source
This object represents request for sendAudio
SendAudioRequest | |
|
data SendDocumentRequest Source
This object represents request for sendDocument
SendDocumentRequest | |
|
data SendStickerRequest Source
This object represents request for sendSticker
SendStickerRequest | |
|
data SendVideoRequest Source
This object represents request for sendVideo
SendVideoRequest | |
|
data SendVoiceRequest Source
This object represents request for sendVoice
SendVoiceRequest | |
|
data SendLocationRequest Source
This object represents request for sendLocation
SendLocationRequest | |
|
data SendVenueRequest Source
This object represents request for sendVenue
SendVenueRequest | |
|
data SendContactRequest Source
This object represents request for sendContact
SendContactRequest | |
|
data SendChatActionRequest Source
This object represents request for sendChatAction
SendChatActionRequest | |
|
data ChatAction Source
Type of action to broadcast.
data AnswerInlineQueryRequest Source
AnswerInlineQueryRequest | |
|
data AnswerCallbackQueryRequest Source
AnswerCallbackQueryRequest | |
|
data ReplyKeyboard Source
ReplyKeyboardMarkup | This object represents a custom keyboard with reply options |
| |
ReplyKeyboardHide | Upon receiving a message with this object, Telegram clients will hide the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button |
| |
ForceReply | Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot‘s message and tapped ’Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. |
|
data EditMessageTextRequest Source
EditMessageTextRequest | |
|
data EditMessageCaptionRequest Source
EditMessageCaptionRequest | |
|
data EditMessageReplyMarkupRequest Source
EditMessageReplyMarkupRequest | |
|
Functions
sendMessageRequest :: Text -> Text -> SendMessageRequest Source
forwardMessageRequest :: Text -> Text -> Int -> ForwardMessageRequest Source
sendPhotoRequest :: Text -> Text -> SendPhotoRequest Text Source
sendAudioRequest :: Text -> Text -> SendAudioRequest Source
sendDocumentRequest :: Text -> Text -> SendDocumentRequest Source
sendStickerRequest :: Text -> Text -> SendStickerRequest Source
sendVideoRequest :: Text -> Text -> SendVideoRequest Source
sendVoiceRequest :: Text -> Text -> SendVoiceRequest Source
sendLocationRequest :: Text -> Float -> Float -> SendLocationRequest Source
sendVenueRequest :: Text -> Float -> Float -> Text -> Text -> SendVenueRequest Source
sendContactRequest :: Text -> Text -> Text -> SendContactRequest Source
replyKeyboardMarkup :: [[KeyboardButton]] -> ReplyKeyboard Source
editMessageTextRequest :: Text -> Int -> Text -> EditMessageTextRequest Source
editMessageCaptionRequest :: Text -> Int -> Maybe Text -> EditMessageCaptionRequest Source