telegram-api-0.4.3.0: Telegram Bot API bindings

Safe HaskellNone
LanguageHaskell2010

Web.Telegram.API.Bot.Requests

Contents

Description

This module contains data objects which represents requests to Telegram Bot API

Synopsis

Types

data SendMessageRequest Source #

This object represents request for sendMessage

Constructors

SendMessageRequest 

Fields

Instances

Show SendMessageRequest Source # 
Generic SendMessageRequest Source # 
ToJSON SendMessageRequest Source # 
FromJSON SendMessageRequest Source # 
type Rep SendMessageRequest Source # 
type Rep SendMessageRequest = D1 (MetaData "SendMessageRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "SendMessageRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "message_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "message_text") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "message_parse_mode") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ParseMode))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "message_disable_web_page_preview") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "message_disable_notification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "message_reply_to_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "message_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ReplyKeyboard)))))))

data ForwardMessageRequest Source #

This object represents request for forwardMessage

Constructors

ForwardMessageRequest 

Fields

data FileUpload Source #

This object represents data (image, video, ...) with mime type to upload.

Constructors

FileUpload 

Fields

data FileUploadContent Source #

This object represents data (image, video, ...) to upload.

data SendPhotoRequest payload Source #

This object represents request for sendPhoto

Constructors

SendPhotoRequest 

Fields

  • photo_chat_id :: Text

    Unique identifier for the target chat or username of the target channel (in the format @channelusername)

  • photo_photo :: payload

    Photo to send. You can either pass a file_id as String to resend a photo that is already on the Telegram servers, or upload a new photo.

  • photo_caption :: Maybe Text

    Photo caption (may also be used when resending photos by file_id), 0-200 characters.

  • photo_disable_notification :: Maybe Bool

    Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound.

  • photo_reply_to_message_id :: Maybe Int

    If the message is a reply, ID of the original message

  • photo_reply_markup :: Maybe ReplyKeyboard

    Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.

Instances

Show payload => Show (SendPhotoRequest payload) Source # 

Methods

showsPrec :: Int -> SendPhotoRequest payload -> ShowS #

show :: SendPhotoRequest payload -> String #

showList :: [SendPhotoRequest payload] -> ShowS #

Generic (SendPhotoRequest payload) Source # 

Associated Types

type Rep (SendPhotoRequest payload) :: * -> * #

Methods

from :: SendPhotoRequest payload -> Rep (SendPhotoRequest payload) x #

to :: Rep (SendPhotoRequest payload) x -> SendPhotoRequest payload #

ToJSON (SendPhotoRequest Text) Source # 
FromJSON (SendPhotoRequest Text) Source # 
type Rep (SendPhotoRequest payload) Source # 
type Rep (SendPhotoRequest payload) = D1 (MetaData "SendPhotoRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "SendPhotoRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "photo_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "photo_photo") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 payload)) (S1 (MetaSel (Just Symbol "photo_caption") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "photo_disable_notification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "photo_reply_to_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "photo_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ReplyKeyboard)))))))

data SendAudioRequest payload Source #

This object represents request for sendAudio

Constructors

SendAudioRequest 

Fields

Instances

Show payload => Show (SendAudioRequest payload) Source # 

Methods

showsPrec :: Int -> SendAudioRequest payload -> ShowS #

show :: SendAudioRequest payload -> String #

showList :: [SendAudioRequest payload] -> ShowS #

Generic (SendAudioRequest payload) Source # 

Associated Types

type Rep (SendAudioRequest payload) :: * -> * #

Methods

from :: SendAudioRequest payload -> Rep (SendAudioRequest payload) x #

to :: Rep (SendAudioRequest payload) x -> SendAudioRequest payload #

ToJSON (SendAudioRequest Text) Source # 
FromJSON (SendAudioRequest Text) Source # 
type Rep (SendAudioRequest payload) Source # 
type Rep (SendAudioRequest payload) = D1 (MetaData "SendAudioRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "SendAudioRequest" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_audio_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_audio_audio") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 payload))) ((:*:) (S1 (MetaSel (Just Symbol "_audio_duration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_audio_performer") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_audio_title") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_audio_disable_notification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_audio_reply_to_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_audio_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ReplyKeyboard)))))))

data SendDocumentRequest payload Source #

This object represents request for sendDocument

Constructors

SendDocumentRequest 

Fields

Instances

Show payload => Show (SendDocumentRequest payload) Source # 
Generic (SendDocumentRequest payload) Source # 

Associated Types

type Rep (SendDocumentRequest payload) :: * -> * #

Methods

from :: SendDocumentRequest payload -> Rep (SendDocumentRequest payload) x #

to :: Rep (SendDocumentRequest payload) x -> SendDocumentRequest payload #

ToJSON (SendDocumentRequest Text) Source # 
FromJSON (SendDocumentRequest Text) Source # 
type Rep (SendDocumentRequest payload) Source # 
type Rep (SendDocumentRequest payload) = D1 (MetaData "SendDocumentRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "SendDocumentRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "document_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "document_document") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 payload)) (S1 (MetaSel (Just Symbol "document_caption") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "document_disable_notification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "document_reply_to_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "document_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ReplyKeyboard)))))))

data SendStickerRequest payload Source #

This object represents request for sendSticker

Constructors

SendStickerRequest 

Fields

  • sticker_chat_id :: Text

    Unique identifier for the target chat or username of the target channel (in the format @channelusername)

  • sticker_sticker :: payload

    Sticker to send. You can either pass a file_id as String to resend a sticker that is already on the Telegram servers, or upload a new sticker.

  • sticker_disable_notification :: Maybe Bool

    Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound.

  • sticker_reply_to_message_id :: Maybe Int

    If the message is a reply, ID of the original message

  • sticker_reply_markup :: Maybe ReplyKeyboard

    Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.

Instances

Show payload => Show (SendStickerRequest payload) Source # 
Generic (SendStickerRequest payload) Source # 

Associated Types

type Rep (SendStickerRequest payload) :: * -> * #

Methods

from :: SendStickerRequest payload -> Rep (SendStickerRequest payload) x #

to :: Rep (SendStickerRequest payload) x -> SendStickerRequest payload #

ToJSON (SendStickerRequest Text) Source # 
FromJSON (SendStickerRequest Text) Source # 
type Rep (SendStickerRequest payload) Source # 
type Rep (SendStickerRequest payload) = D1 (MetaData "SendStickerRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "SendStickerRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "sticker_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "sticker_sticker") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 payload))) ((:*:) (S1 (MetaSel (Just Symbol "sticker_disable_notification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "sticker_reply_to_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "sticker_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ReplyKeyboard)))))))

data SendVideoRequest payload Source #

This object represents request for sendVideo

Constructors

SendVideoRequest 

Fields

Instances

Show payload => Show (SendVideoRequest payload) Source # 

Methods

showsPrec :: Int -> SendVideoRequest payload -> ShowS #

show :: SendVideoRequest payload -> String #

showList :: [SendVideoRequest payload] -> ShowS #

Generic (SendVideoRequest payload) Source # 

Associated Types

type Rep (SendVideoRequest payload) :: * -> * #

Methods

from :: SendVideoRequest payload -> Rep (SendVideoRequest payload) x #

to :: Rep (SendVideoRequest payload) x -> SendVideoRequest payload #

ToJSON (SendVideoRequest Text) Source # 
FromJSON (SendVideoRequest Text) Source # 
type Rep (SendVideoRequest payload) Source # 
type Rep (SendVideoRequest payload) = D1 (MetaData "SendVideoRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "SendVideoRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_video_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_video_video") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 payload)) (S1 (MetaSel (Just Symbol "_video_duration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_video_caption") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_video_disable_notification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_video_reply_to_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_video_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ReplyKeyboard)))))))

data SendVoiceRequest payload Source #

This object represents request for sendVoice

Constructors

SendVoiceRequest 

Fields

  • _voice_chat_id :: Text

    Unique identifier for the target chat or username of the target channel (in the format @channelusername)

  • _voice_voice :: payload

    Audio file to send. You can either pass a file_id as String to resend an audio that is already on the Telegram servers, or upload a new audio file.

  • _voice_duration :: Maybe Int

    Duration of sent audio in seconds

  • _voice_disable_notification :: Maybe Bool

    Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound.

  • _voice_reply_to_message_id :: Maybe Int

    If the message is a reply, ID of the original message

  • _voice_reply_markup :: Maybe ReplyKeyboard

    Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to hide keyboard or to force a reply from the user.

Instances

Show payload => Show (SendVoiceRequest payload) Source # 

Methods

showsPrec :: Int -> SendVoiceRequest payload -> ShowS #

show :: SendVoiceRequest payload -> String #

showList :: [SendVoiceRequest payload] -> ShowS #

Generic (SendVoiceRequest payload) Source # 

Associated Types

type Rep (SendVoiceRequest payload) :: * -> * #

Methods

from :: SendVoiceRequest payload -> Rep (SendVoiceRequest payload) x #

to :: Rep (SendVoiceRequest payload) x -> SendVoiceRequest payload #

ToJSON (SendVoiceRequest Text) Source # 
FromJSON (SendVoiceRequest Text) Source # 
type Rep (SendVoiceRequest payload) Source # 
type Rep (SendVoiceRequest payload) = D1 (MetaData "SendVoiceRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "SendVoiceRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_voice_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_voice_voice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 payload)) (S1 (MetaSel (Just Symbol "_voice_duration") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))))) ((:*:) (S1 (MetaSel (Just Symbol "_voice_disable_notification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_voice_reply_to_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_voice_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ReplyKeyboard)))))))

data SendLocationRequest Source #

This object represents request for sendLocation

Constructors

SendLocationRequest 

Fields

Instances

Show SendLocationRequest Source # 
Generic SendLocationRequest Source # 
ToJSON SendLocationRequest Source # 
FromJSON SendLocationRequest Source # 
type Rep SendLocationRequest Source # 
type Rep SendLocationRequest = D1 (MetaData "SendLocationRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "SendLocationRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "location_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "location_latitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Float)) (S1 (MetaSel (Just Symbol "location_longitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Float)))) ((:*:) (S1 (MetaSel (Just Symbol "location_disable_notification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "location_reply_to_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "location_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ReplyKeyboard)))))))

data SendVenueRequest Source #

This object represents request for sendVenue

Constructors

SendVenueRequest 

Fields

Instances

Show SendVenueRequest Source # 
Generic SendVenueRequest Source # 
ToJSON SendVenueRequest Source # 
FromJSON SendVenueRequest Source # 
type Rep SendVenueRequest Source # 

data SendContactRequest Source #

This object represents request for sendContact

Constructors

SendContactRequest 

Fields

Instances

Show SendContactRequest Source # 
Generic SendContactRequest Source # 
ToJSON SendContactRequest Source # 
FromJSON SendContactRequest Source # 
type Rep SendContactRequest Source # 
type Rep SendContactRequest = D1 (MetaData "SendContactRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "SendContactRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_contact_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_contact_phone_number") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_contact_first_name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_contact_last_name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_contact_disable_notification") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_contact_reply_to_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_contact_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ReplyKeyboard)))))))

data SendChatActionRequest Source #

This object represents request for sendChatAction

Constructors

SendChatActionRequest 

Fields

data ChatAction Source #

Type of action to broadcast.

Instances

Show ChatAction Source # 
Generic ChatAction Source # 

Associated Types

type Rep ChatAction :: * -> * #

ToJSON ChatAction Source # 
FromJSON ChatAction Source # 
type Rep ChatAction Source # 
type Rep ChatAction = D1 (MetaData "ChatAction" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "Typing" PrefixI False) U1) (C1 (MetaCons "UploadPhoto" PrefixI False) U1)) ((:+:) (C1 (MetaCons "RecordVideo" PrefixI False) U1) (C1 (MetaCons "UploadVideo" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "RecordAudio" PrefixI False) U1) (C1 (MetaCons "UploadAudio" PrefixI False) U1)) ((:+:) (C1 (MetaCons "UploadDocument" PrefixI False) U1) (C1 (MetaCons "FindLocation" PrefixI False) U1))))

data AnswerInlineQueryRequest Source #

Constructors

AnswerInlineQueryRequest 

Fields

  • query_inline_query_id :: Text

    Unique identifier for the answered query

  • query_results :: [InlineQueryResult]

    A JSON-serialized array of results for the inline query

  • query_cache_time :: Maybe Int

    The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.

  • query_is_personal :: Maybe Bool

    Pass True, if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query

  • query_next_offset :: Maybe Text

    Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don‘t support pagination. Offset length can’t exceed 64 bytes.

  • query_switch_pm_text :: Maybe Text

    If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter

  • query_switch_pm_parameter :: Maybe Text

    Parameter for the start message sent to the bot when user presses the switch button

    Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a ‘Connect your YouTube account’ button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an oauth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.

Instances

Show AnswerInlineQueryRequest Source # 
Generic AnswerInlineQueryRequest Source # 
ToJSON AnswerInlineQueryRequest Source # 
FromJSON AnswerInlineQueryRequest Source # 
type Rep AnswerInlineQueryRequest Source # 
type Rep AnswerInlineQueryRequest = D1 (MetaData "AnswerInlineQueryRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "AnswerInlineQueryRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "query_inline_query_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "query_results") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [InlineQueryResult])) (S1 (MetaSel (Just Symbol "query_cache_time") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "query_is_personal") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "query_next_offset") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "query_switch_pm_text") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "query_switch_pm_parameter") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))))))

data AnswerCallbackQueryRequest Source #

Constructors

AnswerCallbackQueryRequest 

Fields

  • cq_callback_query_id :: Text

    Unique identifier for the query to be answered

  • cq_text :: Maybe Text

    Text of the notification. If not specified, nothing will be shown to the user

  • cq_show_alert :: Maybe Bool

    If true, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.

data ReplyKeyboard Source #

Constructors

ReplyInlineKeyboardMarkup

This object represents a custom keyboard with reply options

Fields

ReplyKeyboardMarkup 

Fields

  • reply_keyboard :: [[KeyboardButton]]

    Array of button rows, each represented by an Array of KeyboardButton objects

  • reply_resize_keyboard :: Maybe Bool

    Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.

  • reply_one_time_keyboard :: Maybe Bool

    Requests clients to hide the keyboard as soon as it's been used. Defaults to false.

  • reply_selective :: Maybe Bool

    Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message. Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard.

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

  • reply_hide_keyboard :: Bool

    Requests clients to hide the custom keyboard

  • reply_selective :: Maybe Bool

    Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message. Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard.

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

  • reply_force_reply :: Bool

    Shows reply interface to the user, as if they manually selected the bot‘s message and tapped ’Reply'

  • reply_selective :: Maybe Bool

    Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message. Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard.

Instances

Show ReplyKeyboard Source # 
Generic ReplyKeyboard Source # 

Associated Types

type Rep ReplyKeyboard :: * -> * #

ToJSON ReplyKeyboard Source # 
FromJSON ReplyKeyboard Source # 
type Rep ReplyKeyboard Source # 
type Rep ReplyKeyboard = D1 (MetaData "ReplyKeyboard" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) ((:+:) ((:+:) (C1 (MetaCons "ReplyInlineKeyboardMarkup" PrefixI True) (S1 (MetaSel (Just Symbol "reply_inline_keyboard") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [[InlineKeyboardButton]]))) (C1 (MetaCons "ReplyKeyboardMarkup" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "reply_keyboard") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [[KeyboardButton]])) (S1 (MetaSel (Just Symbol "reply_resize_keyboard") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "reply_one_time_keyboard") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "reply_selective") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))))) ((:+:) (C1 (MetaCons "ReplyKeyboardHide" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "reply_hide_keyboard") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "reply_selective") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))) (C1 (MetaCons "ForceReply" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "reply_force_reply") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "reply_selective") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool)))))))

data EditMessageTextRequest Source #

Constructors

EditMessageTextRequest 

Fields

Instances

Show EditMessageTextRequest Source # 
Generic EditMessageTextRequest Source # 
ToJSON EditMessageTextRequest Source # 
FromJSON EditMessageTextRequest Source # 
type Rep EditMessageTextRequest Source # 

data EditMessageCaptionRequest Source #

Constructors

EditMessageCaptionRequest 

Fields

Instances

Show EditMessageCaptionRequest Source # 
Generic EditMessageCaptionRequest Source # 
ToJSON EditMessageCaptionRequest Source # 
FromJSON EditMessageCaptionRequest Source # 
type Rep EditMessageCaptionRequest Source # 
type Rep EditMessageCaptionRequest = D1 (MetaData "EditMessageCaptionRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "EditMessageCaptionRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "emc_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "emc_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int)))) ((:*:) (S1 (MetaSel (Just Symbol "emc_inline_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "emc_caption") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "emc_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe InlineKeyboardMarkup)))))))

data EditMessageReplyMarkupRequest Source #

Constructors

EditMessageReplyMarkupRequest 

Fields

Instances

Show EditMessageReplyMarkupRequest Source # 
Generic EditMessageReplyMarkupRequest Source # 
ToJSON EditMessageReplyMarkupRequest Source # 
FromJSON EditMessageReplyMarkupRequest Source # 
type Rep EditMessageReplyMarkupRequest Source # 
type Rep EditMessageReplyMarkupRequest = D1 (MetaData "EditMessageReplyMarkupRequest" "Web.Telegram.API.Bot.Requests" "telegram-api-0.4.3.0-7gUtd774AGu1nW0CVBhSHa" False) (C1 (MetaCons "EditMessageReplyMarkupRequest" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "emrm_chat_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "emrm_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int)))) ((:*:) (S1 (MetaSel (Just Symbol "emrm_inline_message_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "emrm_reply_markup") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe InlineKeyboardMarkup))))))

Functions