| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Web.Telegram.API.Bot.Responses
Contents
Description
This module contains responses from Telegram Bot API
- data Response a = Response {
- result :: a
- parameters :: Maybe ResponseParameters
- data ResponseParameters = ResponseParameters {}
- type GetMeResponse = Response User
- type MessageResponse = Response Message
- type ChatActionResponse = Response Bool
- type UpdatesResponse = Response [Update]
- type FileResponse = Response File
- type UserProfilePhotosResponse = Response UserProfilePhotos
- type SetWebhookResponse = Response Bool
- type InlineQueryResponse = Response Bool
- type CallbackQueryResponse = Response Bool
- type KickChatMemberResponse = Response Bool
- type LeaveChatResponse = Response Bool
- type UnbanChatMemberResponse = Response Bool
- type GetChatResponse = Response Chat
- type GetChatAdministratorsResponse = Response [ChatMember]
- type GetChatMembersCountResponse = Response Int
- type GetChatMemberResponse = Response ChatMember
- type GetWebhookInfoResponse = Response WebhookInfo
- type AnswerShippingQueryResponse = Response Bool
- type AnswerPreCheckoutQueryResponse = Response Bool
Types
Constructors
| Response | |
Fields
| |
data ResponseParameters Source #
Constructors
| ResponseParameters | |
Fields
| |
type GetMeResponse = Response User Source #
This object represents getMe response
type MessageResponse = Response Message Source #
This object represents message response
type ChatActionResponse = Response Bool Source #
This object represents sendChatAction response
type UpdatesResponse = Response [Update] Source #
This object represents getUpdates response
type FileResponse = Response File Source #
This object represents file response
type UserProfilePhotosResponse = Response UserProfilePhotos Source #
This object represents user profile photos response
type SetWebhookResponse = Response Bool Source #
This object represents setWebhook response
type InlineQueryResponse = Response Bool Source #
This object represents answerInlineQuery response
type CallbackQueryResponse = Response Bool Source #
This object represents answerCallbackQuery response
type KickChatMemberResponse = Response Bool Source #
This object represents kickChatMember response
type LeaveChatResponse = Response Bool Source #
type UnbanChatMemberResponse = Response Bool Source #
This object represents unbanChatMember response
type GetChatResponse = Response Chat Source #