Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains data objects which represents requests to Telegram Bot API
- data SendMessageRequest = SendMessageRequest {}
- data ForwardMessageRequest = ForwardMessageRequest {}
- data SendPhotoRequest = SendPhotoRequest {}
- 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 SendMessageRequest Source
This object represents request for sendMessage
SendMessageRequest | |
|
data ForwardMessageRequest Source
This object represents request for forwardMessage
ForwardMessageRequest | |
|
data SendPhotoRequest Source
This object represents request for sendPhoto
SendPhotoRequest | |
|
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 SendChatActionRequest Source
This object represents request for sendChatAction
data ChatAction Source
Type of action to broadcast.
data AnswerInlineQueryRequest Source
AnswerInlineQueryRequest | |
|
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. |
|