| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Web.Telegram.API.Bot.Requests
Contents
Description
This module contains data objects which represents requests to Telegram Bot API
- data FileUploadContent
- data FileUpload = FileUpload {}
- data SendMessageRequest = SendMessageRequest {}
- data ForwardMessageRequest = ForwardMessageRequest {}
- data SendPhotoRequest payload = SendPhotoRequest {
- photo_chat_id :: Text
- photo_photo :: payload
- photo_caption :: Maybe Text
- photo_reply_to_message_id :: Maybe Int
- photo_reply_markup :: Maybe ReplyKeyboard
- data SendAudioRequest = SendAudioRequest {}
- data SendDocumentRequest = SendDocumentRequest {}
- data SendStickerRequest = SendStickerRequest {}
- data SendVideoRequest = SendVideoRequest {}
- data SendVoiceRequest = SendVoiceRequest {}
- data SendLocationRequest = SendLocationRequest {}
- data SendChatActionRequest = SendChatActionRequest {}
- data ChatAction
- data AnswerInlineQueryRequest = AnswerInlineQueryRequest {}
- data ReplyKeyboard
- = ReplyKeyboardMarkup { }
- | ReplyKeyboardHide { }
- | ForceReply { }
Types
data FileUploadContent Source
This object represents data (image, video, ...) to upload.
Constructors
| FileUploadFile FilePath | |
| FileUploadBS ByteString | |
| FileUploadLBS ByteString |
data FileUpload Source
This object represents data (image, video, ...) with mime type to upload.
Constructors
| FileUpload | |
Fields
| |
Instances
data SendMessageRequest Source
This object represents request for sendMessage
Constructors
| SendMessageRequest | |
Fields
| |
data ForwardMessageRequest Source
This object represents request for forwardMessage
Constructors
| ForwardMessageRequest | |
Fields
| |
data SendPhotoRequest payload Source
This object represents request for sendPhoto
Constructors
| SendPhotoRequest | |
Fields
| |
Instances
| Show payload => Show (SendPhotoRequest payload) Source | |
| Generic (SendPhotoRequest payload) Source | |
| ToJSON (SendPhotoRequest Text) Source | |
| FromJSON (SendPhotoRequest Text) Source | |
| ToMultipartFormData (SendPhotoRequest FileUpload) Source | |
| type Rep (SendPhotoRequest payload) Source |
data SendAudioRequest Source
This object represents request for sendAudio
Constructors
| SendAudioRequest | |
Fields
| |
data SendDocumentRequest Source
This object represents request for sendDocument
Constructors
| SendDocumentRequest | |
Fields
| |
data SendStickerRequest Source
This object represents request for sendSticker
Constructors
| SendStickerRequest | |
Fields
| |
data SendVideoRequest Source
This object represents request for sendVideo
Constructors
| SendVideoRequest | |
Fields
| |
data SendVoiceRequest Source
This object represents request for sendVoice
Constructors
| SendVoiceRequest | |
Fields
| |
data SendLocationRequest Source
This object represents request for sendLocation
Constructors
| SendLocationRequest | |
Fields
| |
data SendChatActionRequest Source
This object represents request for sendChatAction
Constructors
| SendChatActionRequest | |
Fields | |
data ChatAction Source
Type of action to broadcast.
Constructors
| Typing | |
| UploadPhoto | |
| RecordVideo | |
| UploadVideo | |
| RecordAudio | |
| UploadAudio | |
| UploadDocument | |
| FindLocation |
Instances
data AnswerInlineQueryRequest Source
Constructors
| AnswerInlineQueryRequest | |
Fields
| |
data ReplyKeyboard Source
Constructors
| ReplyKeyboardMarkup | This object represents a custom keyboard with reply options |
Fields
| |
| 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 |
Fields
| |
| 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. |
Fields
| |