-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Telegram Bot API bindings -- -- High-level bindings to the Telegram Bot API @package telegram-api @version 0.3.1.0 module Servant.Client.MultipartFormData -- | A type that can be converted to a multipart/form-data value. class ToMultipartFormData a -- | Convert a Haskell value to a multipart/form-data-friendly intermediate -- type. toMultipartFormData :: ToMultipartFormData a => a -> [Part] -- | Extract the request body as a value of type a. data MultipartFormDataReqBody a instance (Servant.Client.MultipartFormData.ToMultipartFormData b, Servant.API.ContentTypes.MimeUnrender ct a) => Servant.Client.HasClient (Servant.Client.MultipartFormData.MultipartFormDataReqBody b Servant.API.Sub.:> Servant.API.Post.Post (ct : cts) a) -- | This module contains objects which represent data of Telegram Bot API -- responses module Web.Telegram.API.Bot.Data -- | This object represents a Telegram user or bot. data User User :: Int -> Text -> Maybe Text -> Maybe Text -> User -- | Unique identifier for this user or bot [user_id] :: User -> Int -- | User‘s or bot’s first name [user_first_name] :: User -> Text -- | User‘s or bot’s last name [user_last_name] :: User -> Maybe Text -- | User‘s or bot’s username [user_username] :: User -> Maybe Text -- | This object represents a chat. data Chat Chat :: Int -> ChatType -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Chat -- | Unique identifier for this chat, not exceeding 1e13 by absolute value [chat_id] :: Chat -> Int -- | Type of chat, can be either Private, Group, -- Supergroup or Channel [chat_type] :: Chat -> ChatType -- | Title, for channels and group chats [chat_title] :: Chat -> Maybe Text -- | Username, for private chats and channels if available [chat_username] :: Chat -> Maybe Text -- | First name of the other party in a private chat [chat_first_name] :: Chat -> Maybe Text -- | Last name of the other party in a private chat [chat_last_name] :: Chat -> Maybe Text -- | This object represents a message. data Message Message :: Int -> Maybe User -> Int -> Chat -> Maybe User -> Maybe Int -> Maybe Message -> Maybe Text -> Maybe Audio -> Maybe Document -> Maybe [PhotoSize] -> Maybe Sticker -> Maybe Video -> Maybe Voice -> Maybe Text -> Maybe Contact -> Maybe Location -> Maybe User -> Maybe User -> Maybe Text -> Maybe [PhotoSize] -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Bool -> Maybe Int -> Maybe Int -> Message -- | Unique message identifier [message_id] :: Message -> Int -- | Sender, can be empty for messages sent to channels [from] :: Message -> Maybe User -- | Date the message was sent in Unix time [date] :: Message -> Int -- | Conversation the message belongs to [chat] :: Message -> Chat -- | For forwarded messages, sender of the original message [forward_from] :: Message -> Maybe User -- | For forwarded messages, date the original message was sent in Unix -- time [forward_date] :: Message -> Maybe Int -- | For replies, the original message. Note that the Message object -- in this field will not contain further reply_to_message fields -- even if it itself is a reply. [reply_to_message] :: Message -> Maybe Message -- | For text messages, the actual UTF-8 text of the message [text] :: Message -> Maybe Text -- | Message is an audio file, information about the file [audio] :: Message -> Maybe Audio -- | Message is a general file, information about the file [document] :: Message -> Maybe Document -- | Message is a photo, available sizes of the photo [photo] :: Message -> Maybe [PhotoSize] -- | Message is a sticker, information about the sticker [sticker] :: Message -> Maybe Sticker -- | Message is a video, information about the video [video] :: Message -> Maybe Video -- | Message is a voice message, information about the file [voice] :: Message -> Maybe Voice -- | Caption for the photo or video [caption] :: Message -> Maybe Text -- | Message is a shared contact, information about the contact [contact] :: Message -> Maybe Contact -- | Message is a shared location, information about the location [location] :: Message -> Maybe Location -- | A new member was added to the group, information about them (this -- member may be the bot itself) [new_chat_participant] :: Message -> Maybe User -- | A member was removed from the group, information about them (this -- member may be the bot itself) [left_chat_participant] :: Message -> Maybe User -- | A chat title was changed to this value [new_chat_title] :: Message -> Maybe Text -- | A chat photo was change to this value [new_chat_photo] :: Message -> Maybe [PhotoSize] -- | Service message: the chat photo was deleted [delete_chat_photo] :: Message -> Maybe Bool -- | Service message: the group has been created [group_chat_created] :: Message -> Maybe Bool -- | Service message: the supergroup has been created [supergroup_chat_created] :: Message -> Maybe Bool -- | Service message: the channel has been created [channel_chat_created] :: Message -> Maybe Bool -- | The group has been migrated to a supergroup with the specified -- identifier, not exceeding 1e13 by absolute value [migrate_to_chat_id] :: Message -> Maybe Int -- | The supergroup has been migrated from a group with the specified -- identifier, not exceeding 1e13 by absolute value [migrate_from_chat_id] :: Message -> Maybe Int -- | This object represents one size of a photo or a File / -- Sticker thumbnail. data PhotoSize PhotoSize :: Text -> Int -> Int -> Maybe Int -> PhotoSize -- | Unique identifier for this file [photo_file_id] :: PhotoSize -> Text -- | Photo width [photo_width] :: PhotoSize -> Int -- | Photo height [photo_height] :: PhotoSize -> Int -- | File size [photo_file_size] :: PhotoSize -> Maybe Int -- | This object represents an audio file to be treated as music by the -- Telegram clients. data Audio Audio :: Text -> Int -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Int -> Audio -- | Unique identifier for this file [audio_file_id] :: Audio -> Text -- | Duration of the audio in seconds as defined by sender [audio_duration] :: Audio -> Int -- | Performer of the audio as defined by sender or by audio tags [audio_performer] :: Audio -> Maybe Text -- | Title of the audio as defined by sender or by audio tags [audio_title] :: Audio -> Maybe Text -- | MIME type of the file as defined by sender [audio_mime_type] :: Audio -> Maybe Text -- | File size [audio_file_size] :: Audio -> Maybe Int -- | This object represents a general file (as opposed to PhotoSize, -- Voice messages and Audio files). data Document Document :: Text -> Maybe PhotoSize -> Maybe Text -> Maybe Text -> Maybe Int -> Document -- | Unique file identifier [doc_file_id] :: Document -> Text -- | Document thumbnail as defined by sender [doc_thumb] :: Document -> Maybe PhotoSize -- | Original filename as defined by sender [doc_file_name] :: Document -> Maybe Text -- | MIME type of the file as defined by sender [doc_mime_type] :: Document -> Maybe Text -- | File size [doc_file_size] :: Document -> Maybe Int -- | This object represents a sticker. data Sticker Sticker :: Text -> Int -> Int -> Maybe PhotoSize -> Maybe Int -> Sticker -- | Unique identifier for this file [sticker_file_id] :: Sticker -> Text -- | Sticker width [sticker_width] :: Sticker -> Int -- | Sticker height [sticker_height] :: Sticker -> Int -- | Sticker thumbnail in .webp or .jpg format [sticker_thumb] :: Sticker -> Maybe PhotoSize -- | File size [sticker_file_size] :: Sticker -> Maybe Int -- | This object represents a video file. data Video Video :: Text -> Int -> Int -> Int -> Maybe PhotoSize -> Maybe Text -> Maybe Int -> Video -- | Unique identifier for this file [video_file_id] :: Video -> Text -- | Video width as defined by sender [video_width] :: Video -> Int -- | Video height as defined by sender [video_height] :: Video -> Int -- | Duration of the video in seconds as defined by sender [video_duration] :: Video -> Int -- | Video thumbnail [video_thumb] :: Video -> Maybe PhotoSize -- | MIME type of a file as defined by sender [video_mime_type] :: Video -> Maybe Text -- | File size [video_file_size] :: Video -> Maybe Int -- | This object represents a voice note. data Voice Voice :: Text -> Int -> Maybe Text -> Maybe Int -> Voice -- | Unique identifier for this file [voice_file_id] :: Voice -> Text -- | Duration of the audio in seconds as defined by sender [voice_duration] :: Voice -> Int -- | MIME type of the file as defined by sender [voice_mime_type] :: Voice -> Maybe Text -- | File size [voice_file_size] :: Voice -> Maybe Int -- | This object represents a phone contact. data Contact Contact :: Text -> Text -> Maybe Text -> Maybe Int -> Contact -- | Contact's phone number [contact_phone_number] :: Contact -> Text -- | Contact's first name [contact_first_name] :: Contact -> Text -- | Contact's last name [contact_last_name] :: Contact -> Maybe Text -- | Contact's user identifier in Telegram [contact_user_id] :: Contact -> Maybe Int -- | This object represents a point on the map. data Location Location :: Float -> Float -> Location -- | Longitude as defined by sender [longitude] :: Location -> Float -- | Latitude as defined by sender [latitude] :: Location -> Float -- | This object represents an incoming update. Only one of the optional -- parameters can be present in any given update. data Update Update :: Int -> Maybe Message -> Maybe InlineQuery -> Maybe ChosenInlineResult -> Update -- | The update's unique identifier. Update identifiers start from a -- certain positive number and increase sequentially. This ID becomes -- especially handy if you’re using setWebhooks, since it allows -- you to ignore repeated updates or to restore the correct update -- sequence, should they get out of order. [update_id] :: Update -> Int -- | New incoming message of any kind — text, photo, sticker, etc. [message] :: Update -> Maybe Message -- | New incoming inline query [inline_query] :: Update -> Maybe InlineQuery -- | The result of a inline query that was chosen by a user and sent to -- their chat partner [chosen_inline_result] :: Update -> Maybe ChosenInlineResult -- | This object represents a file ready to be downloaded. The file can be -- downloaded via the link -- https://api.telegram.org/file/bot<token>/<file_path>. -- It is guaranteed that the link will be valid for at least 1 hour. When -- the link expires, a new one can be requested by calling -- getFile. -- -- Maximum file size to download is 20 MB data File File :: Text -> Maybe Int -> Maybe Text -> File -- | Unique identifier for this file [file_id] :: File -> Text -- | File size, if known [file_size] :: File -> Maybe Int -- | File path. Use -- https://api.telegram.org/file/bot<token>/<file_path> -- to get the file. [file_path] :: File -> Maybe Text -- | This object represent a user's profile pictures. data UserProfilePhotos UserProfilePhotos :: Int -> [[PhotoSize]] -> UserProfilePhotos -- | Total number of profile pictures the target user has [total_count] :: UserProfilePhotos -> Int -- | Requested profile pictures (in up to 4 sizes each) [photos] :: UserProfilePhotos -> [[PhotoSize]] -- | This object represents an incoming inline query. When the user sends -- an empty query, your bot could return some default or trending -- results. data InlineQuery InlineQuery :: Text -> User -> Text -> Text -> InlineQuery -- | Unique identifier for this query [query_id] :: InlineQuery -> Text -- | Sender [query_from] :: InlineQuery -> User -- | Text of the query [query_query] :: InlineQuery -> Text -- | Offset of the results to be returned, can be controlled by the bot [query_offset] :: InlineQuery -> Text -- | This object represents a result of an inline query that was chosen by -- the user and sent to their chat partner. data ChosenInlineResult ChosenInlineResult :: Text -> User -> Text -> ChosenInlineResult -- | Unique identifier for this query [chosen_result_id] :: ChosenInlineResult -> Text -- | Sender [chosen_from] :: ChosenInlineResult -> User -- | Text of the query [chosen_query] :: ChosenInlineResult -> Text data InlineQueryResult -- | Represents a link to an article or web page. InlineQueryResultArticle :: Text -> Maybe Text -> Maybe Text -> Maybe ParseMode -> Maybe Bool -> Maybe Text -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe Int -> InlineQueryResult -- | Unique identifier for this result, 1-64 Bytes [iq_res_id] :: InlineQueryResult -> Text -- | Title of the result [iq_res_title] :: InlineQueryResult -> Maybe Text -- | Text of the message to be sent [iq_res_message_text] :: InlineQueryResult -> Maybe Text -- | Send Markdown, if you want Telegram apps to show bold, italic -- and inline URLs in your bot's message. [iq_res_parse_mode] :: InlineQueryResult -> Maybe ParseMode -- | Disables link previews for links in the sent message [iq_res_disable_web_page_preview] :: InlineQueryResult -> Maybe Bool -- | URL of the result [iq_res_url] :: InlineQueryResult -> Maybe Text -- | Pass True, if you don't want the URL to be shown in the message [iq_res_hide_url] :: InlineQueryResult -> Maybe Bool -- | Short description of the result [iq_res_description] :: InlineQueryResult -> Maybe Text -- | Url of the thumbnail for the result [iq_res_thumb_url] :: InlineQueryResult -> Maybe Text -- | Thumbnail width [iq_res_thumb_width] :: InlineQueryResult -> Maybe Int -- | Thumbnail height [iq_res_thumb_height] :: InlineQueryResult -> Maybe Int -- | Represents a link to a photo. By default, this photo will be sent by -- the user with optional caption. Alternatively, you can provide -- message_text to send it instead of photo. InlineQueryResultPhoto :: Text -> Text -> Maybe Int -> Maybe Int -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe ParseMode -> Maybe Bool -> InlineQueryResult -- | Unique identifier for this result, 1-64 Bytes [iq_res_id] :: InlineQueryResult -> Text -- | A valid URL of the photo. Photo must be in jpeg format. Photo size -- must not exceed 5MB [iq_res_photo_url] :: InlineQueryResult -> Text -- | Optional. Width of the photo [iq_res_photo_width] :: InlineQueryResult -> Maybe Int -- | Optional. Height of the photo [iq_res_photo_height] :: InlineQueryResult -> Maybe Int -- | Url of the thumbnail for the result [iq_res_thumb_url] :: InlineQueryResult -> Maybe Text -- | Title of the result [iq_res_title] :: InlineQueryResult -> Maybe Text -- | Short description of the result [iq_res_description] :: InlineQueryResult -> Maybe Text -- | Caption of the photo to be sent, 0-200 characters [iq_res_caption] :: InlineQueryResult -> Maybe Text -- | Text of the message to be sent [iq_res_message_text] :: InlineQueryResult -> Maybe Text -- | Send Markdown, if you want Telegram apps to show bold, italic -- and inline URLs in your bot's message. [iq_res_parse_mode] :: InlineQueryResult -> Maybe ParseMode -- | Disables link previews for links in the sent message [iq_res_disable_web_page_preview] :: InlineQueryResult -> Maybe Bool -- | Represents a link to an animated GIF file. By default, this animated -- GIF file will be sent by the user with optional caption. -- Alternatively, you can provide message_text to send it instead of the -- animation. InlineQueryResultGif :: Text -> Text -> Maybe Int -> Maybe Int -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe ParseMode -> Maybe Bool -> InlineQueryResult -- | Unique identifier for this result, 1-64 Bytes [iq_res_id] :: InlineQueryResult -> Text -- | A valid URL for the GIF file. File size must not exceed 1MB [iq_res_gif_url] :: InlineQueryResult -> Text -- | Width of the GIF [iq_res_gif_width] :: InlineQueryResult -> Maybe Int -- | Height of the GIF [iq_res_gif_height] :: InlineQueryResult -> Maybe Int -- | Url of the thumbnail for the result [iq_res_thumb_url] :: InlineQueryResult -> Maybe Text -- | Title of the result [iq_res_title] :: InlineQueryResult -> Maybe Text -- | Caption of the photo to be sent, 0-200 characters [iq_res_caption] :: InlineQueryResult -> Maybe Text -- | Text of the message to be sent [iq_res_message_text] :: InlineQueryResult -> Maybe Text -- | Send Markdown, if you want Telegram apps to show bold, italic -- and inline URLs in your bot's message. [iq_res_parse_mode] :: InlineQueryResult -> Maybe ParseMode -- | Disables link previews for links in the sent message [iq_res_disable_web_page_preview] :: InlineQueryResult -> Maybe Bool -- | Represents a link to a video animation (H.264/MPEG-4 AVC video without -- sound). By default, this animated MPEG-4 file will be sent by the user -- with optional caption. Alternatively, you can provide message_text to -- send it instead of the animation. InlineQueryResultMpeg4Gif :: Text -> Text -> Maybe Int -> Maybe Int -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe ParseMode -> Maybe Bool -> InlineQueryResult -- | Unique identifier for this result, 1-64 Bytes [iq_res_id] :: InlineQueryResult -> Text -- | A valid URL for the MP4 file. File size must not exceed 1MB [iq_res_mpeg4_url] :: InlineQueryResult -> Text -- | Video width [iq_res_mpeg4_width] :: InlineQueryResult -> Maybe Int -- | Video height [iq_res_mpeg4_height] :: InlineQueryResult -> Maybe Int -- | Url of the thumbnail for the result [iq_res_thumb_url] :: InlineQueryResult -> Maybe Text -- | Title of the result [iq_res_title] :: InlineQueryResult -> Maybe Text -- | Caption of the photo to be sent, 0-200 characters [iq_res_caption] :: InlineQueryResult -> Maybe Text -- | Text of the message to be sent [iq_res_message_text] :: InlineQueryResult -> Maybe Text -- | Send Markdown, if you want Telegram apps to show bold, italic -- and inline URLs in your bot's message. [iq_res_parse_mode] :: InlineQueryResult -> Maybe ParseMode -- | Disables link previews for links in the sent message [iq_res_disable_web_page_preview] :: InlineQueryResult -> Maybe Bool -- | Represents link to a page containing an embedded video player or a -- video file. InlineQueryResultVideo :: Text -> Text -> Text -> Maybe Text -> Maybe ParseMode -> Maybe Bool -> Maybe Int -> Maybe Int -> Maybe Int -> Maybe Text -> Maybe Text -> Maybe Text -> InlineQueryResult -- | Unique identifier for this result, 1-64 Bytes [iq_res_id] :: InlineQueryResult -> Text -- | A valid URL for the embedded video player or video file [iq_res_video_url] :: InlineQueryResult -> Text -- | Mime type of the content of video url, “texthtml” or “videomp4” [iq_res_mime_type] :: InlineQueryResult -> Text -- | Text of the message to be sent [iq_res_message_text] :: InlineQueryResult -> Maybe Text -- | Send Markdown, if you want Telegram apps to show bold, italic -- and inline URLs in your bot's message. [iq_res_parse_mode] :: InlineQueryResult -> Maybe ParseMode -- | Disables link previews for links in the sent message [iq_res_disable_web_page_preview] :: InlineQueryResult -> Maybe Bool -- | Video width [iq_res_video_width] :: InlineQueryResult -> Maybe Int -- | Video height [iq_res_video_height] :: InlineQueryResult -> Maybe Int -- | Video duration in seconds [iq_res_video_duration] :: InlineQueryResult -> Maybe Int -- | Url of the thumbnail for the result [iq_res_thumb_url] :: InlineQueryResult -> Maybe Text -- | Title of the result [iq_res_title] :: InlineQueryResult -> Maybe Text -- | Short description of the result [iq_res_description] :: InlineQueryResult -> Maybe Text -- | Type of chat. data ChatType Private :: ChatType Group :: ChatType Supergroup :: ChatType Channel :: ChatType -- | Parse mode for text message data ParseMode Markdown :: ParseMode instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3Update instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2Update instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1Update instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0Update instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0Update instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1Update instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_26Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_25Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_24Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_23Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_22Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_21Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_20Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_19Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_18Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_17Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_16Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_15Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_14Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_13Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_12Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_11Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_10Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_9Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_8Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_7Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_6Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_5Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_4Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0Message instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0Message instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1Message instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1UserProfilePhotos instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0UserProfilePhotos instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0UserProfilePhotos instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1UserProfilePhotos instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2File instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1File instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0File instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0File instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1File instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1Location instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0Location instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0Location instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1Location instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_11InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_10InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_9InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_8InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_7InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_6InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_5InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_4InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_3InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_2InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_1InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_4_0InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_3_9InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_3_8InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_3_7InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_3_6InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_3_5InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_3_4InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_3_3InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_3_2InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_3_1InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_3_0InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_2_9InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_2_8InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_2_7InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_2_6InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_2_5InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_2_4InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_2_3InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_2_2InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_2_1InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_2_0InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_10InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_9InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_8InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_7InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_6InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_5InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_4InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_3InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_2InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_1InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_1_0InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_10InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_9InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_8InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_7InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_6InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_5InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_4InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0InlineQueryResult instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_4InlineQueryResult instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_3InlineQueryResult instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_2InlineQueryResult instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_1InlineQueryResult instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0InlineQueryResult instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1InlineQueryResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2ChosenInlineResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1ChosenInlineResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0ChosenInlineResult instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0ChosenInlineResult instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1ChosenInlineResult instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3InlineQuery instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2InlineQuery instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1InlineQuery instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0InlineQuery instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0InlineQuery instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1InlineQuery instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3Voice instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2Voice instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1Voice instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0Voice instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0Voice instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1Voice instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_6Video instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_5Video instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_4Video instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3Video instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2Video instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1Video instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0Video instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0Video instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1Video instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_4Sticker instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3Sticker instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2Sticker instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1Sticker instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0Sticker instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0Sticker instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1Sticker instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_4Document instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3Document instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2Document instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1Document instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0Document instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0Document instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1Document instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_5Audio instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_4Audio instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3Audio instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2Audio instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1Audio instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0Audio instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0Audio instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1Audio instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3PhotoSize instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2PhotoSize instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1PhotoSize instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0PhotoSize instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0PhotoSize instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1PhotoSize instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0ParseMode instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1ParseMode instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_5Chat instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_4Chat instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3Chat instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2Chat instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1Chat instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0Chat instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0Chat instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1Chat instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_3ChatType instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_2ChatType instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_1ChatType instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0ChatType instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1ChatType instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3Contact instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2Contact instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1Contact instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0Contact instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0Contact instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1Contact instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_3User instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_2User instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_1User instance GHC.Generics.Selector Web.Telegram.API.Bot.Data.S1_0_0User instance GHC.Generics.Constructor Web.Telegram.API.Bot.Data.C1_0User instance GHC.Generics.Datatype Web.Telegram.API.Bot.Data.D1User instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.Update instance GHC.Show.Show Web.Telegram.API.Bot.Data.Update instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.Update instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.Update instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.Message instance GHC.Show.Show Web.Telegram.API.Bot.Data.Message instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.Message instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.Message instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.UserProfilePhotos instance GHC.Show.Show Web.Telegram.API.Bot.Data.UserProfilePhotos instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.UserProfilePhotos instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.UserProfilePhotos instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.File instance GHC.Show.Show Web.Telegram.API.Bot.Data.File instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.File instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.File instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.Location instance GHC.Show.Show Web.Telegram.API.Bot.Data.Location instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.Location instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.Location instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.InlineQueryResult instance GHC.Show.Show Web.Telegram.API.Bot.Data.InlineQueryResult instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.ChosenInlineResult instance GHC.Show.Show Web.Telegram.API.Bot.Data.ChosenInlineResult instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.InlineQuery instance GHC.Show.Show Web.Telegram.API.Bot.Data.InlineQuery instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.Voice instance GHC.Show.Show Web.Telegram.API.Bot.Data.Voice instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.Video instance GHC.Show.Show Web.Telegram.API.Bot.Data.Video instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.Sticker instance GHC.Show.Show Web.Telegram.API.Bot.Data.Sticker instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.Document instance GHC.Show.Show Web.Telegram.API.Bot.Data.Document instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.Audio instance GHC.Show.Show Web.Telegram.API.Bot.Data.Audio instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.PhotoSize instance GHC.Show.Show Web.Telegram.API.Bot.Data.PhotoSize instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.ParseMode instance GHC.Show.Show Web.Telegram.API.Bot.Data.ParseMode instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.Chat instance GHC.Show.Show Web.Telegram.API.Bot.Data.Chat instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.ChatType instance GHC.Show.Show Web.Telegram.API.Bot.Data.ChatType instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.Contact instance GHC.Show.Show Web.Telegram.API.Bot.Data.Contact instance GHC.Generics.Generic Web.Telegram.API.Bot.Data.User instance GHC.Show.Show Web.Telegram.API.Bot.Data.User instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.User instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.User instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.Contact instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.Contact instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.Chat instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.Chat instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.ChatType instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.ChatType instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.ParseMode instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.ParseMode instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.PhotoSize instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.PhotoSize instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.Audio instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.Audio instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.Document instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.Document instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.Sticker instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.Sticker instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.Video instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.Video instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.Voice instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.Voice instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.InlineQuery instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.InlineQuery instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.ChosenInlineResult instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.ChosenInlineResult instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Data.InlineQueryResult instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Data.InlineQueryResult -- | This module contains responses from Telegram Bot API module Web.Telegram.API.Bot.Responses -- | This object represents getMe response data GetMeResponse GetMeResponse :: User -> GetMeResponse [user_result] :: GetMeResponse -> User -- | This object represents message response data MessageResponse MessageResponse :: Message -> MessageResponse [message_result] :: MessageResponse -> Message -- | This object represents sendChatAction response data ChatActionResponse ChatActionResponse :: Bool -> ChatActionResponse [action_result] :: ChatActionResponse -> Bool -- | This object represents getUpdates response data UpdatesResponse UpdatesResponse :: [Update] -> UpdatesResponse [update_result] :: UpdatesResponse -> [Update] -- | This object represents file response data FileResponse FileResponse :: File -> FileResponse [file_result] :: FileResponse -> File -- | This object represents user profile photos response data UserProfilePhotosResponse UserProfilePhotosResponse :: UserProfilePhotos -> UserProfilePhotosResponse [photos_result] :: UserProfilePhotosResponse -> UserProfilePhotos -- | This object represents setWebhook response data SetWebhookResponse SetWebhookResponse :: Bool -> SetWebhookResponse [webhook_result] :: SetWebhookResponse -> Bool -- | This object represents answerInlineQuery response data InlineQueryResponse InlineQueryResponse :: Bool -> InlineQueryResponse [query_result] :: InlineQueryResponse -> Bool instance GHC.Generics.Selector Web.Telegram.API.Bot.Responses.S1_0_0InlineQueryResponse instance GHC.Generics.Constructor Web.Telegram.API.Bot.Responses.C1_0InlineQueryResponse instance GHC.Generics.Datatype Web.Telegram.API.Bot.Responses.D1InlineQueryResponse instance GHC.Generics.Selector Web.Telegram.API.Bot.Responses.S1_0_0SetWebhookResponse instance GHC.Generics.Constructor Web.Telegram.API.Bot.Responses.C1_0SetWebhookResponse instance GHC.Generics.Datatype Web.Telegram.API.Bot.Responses.D1SetWebhookResponse instance GHC.Generics.Selector Web.Telegram.API.Bot.Responses.S1_0_0UserProfilePhotosResponse instance GHC.Generics.Constructor Web.Telegram.API.Bot.Responses.C1_0UserProfilePhotosResponse instance GHC.Generics.Datatype Web.Telegram.API.Bot.Responses.D1UserProfilePhotosResponse instance GHC.Generics.Selector Web.Telegram.API.Bot.Responses.S1_0_0FileResponse instance GHC.Generics.Constructor Web.Telegram.API.Bot.Responses.C1_0FileResponse instance GHC.Generics.Datatype Web.Telegram.API.Bot.Responses.D1FileResponse instance GHC.Generics.Selector Web.Telegram.API.Bot.Responses.S1_0_0UpdatesResponse instance GHC.Generics.Constructor Web.Telegram.API.Bot.Responses.C1_0UpdatesResponse instance GHC.Generics.Datatype Web.Telegram.API.Bot.Responses.D1UpdatesResponse instance GHC.Generics.Selector Web.Telegram.API.Bot.Responses.S1_0_0ChatActionResponse instance GHC.Generics.Constructor Web.Telegram.API.Bot.Responses.C1_0ChatActionResponse instance GHC.Generics.Datatype Web.Telegram.API.Bot.Responses.D1ChatActionResponse instance GHC.Generics.Selector Web.Telegram.API.Bot.Responses.S1_0_0MessageResponse instance GHC.Generics.Constructor Web.Telegram.API.Bot.Responses.C1_0MessageResponse instance GHC.Generics.Datatype Web.Telegram.API.Bot.Responses.D1MessageResponse instance GHC.Generics.Selector Web.Telegram.API.Bot.Responses.S1_0_0GetMeResponse instance GHC.Generics.Constructor Web.Telegram.API.Bot.Responses.C1_0GetMeResponse instance GHC.Generics.Datatype Web.Telegram.API.Bot.Responses.D1GetMeResponse instance GHC.Generics.Generic Web.Telegram.API.Bot.Responses.InlineQueryResponse instance GHC.Show.Show Web.Telegram.API.Bot.Responses.InlineQueryResponse instance GHC.Generics.Generic Web.Telegram.API.Bot.Responses.SetWebhookResponse instance GHC.Show.Show Web.Telegram.API.Bot.Responses.SetWebhookResponse instance GHC.Generics.Generic Web.Telegram.API.Bot.Responses.UserProfilePhotosResponse instance GHC.Show.Show Web.Telegram.API.Bot.Responses.UserProfilePhotosResponse instance GHC.Generics.Generic Web.Telegram.API.Bot.Responses.FileResponse instance GHC.Show.Show Web.Telegram.API.Bot.Responses.FileResponse instance GHC.Generics.Generic Web.Telegram.API.Bot.Responses.UpdatesResponse instance GHC.Show.Show Web.Telegram.API.Bot.Responses.UpdatesResponse instance GHC.Generics.Generic Web.Telegram.API.Bot.Responses.ChatActionResponse instance GHC.Show.Show Web.Telegram.API.Bot.Responses.ChatActionResponse instance GHC.Generics.Generic Web.Telegram.API.Bot.Responses.MessageResponse instance GHC.Show.Show Web.Telegram.API.Bot.Responses.MessageResponse instance GHC.Generics.Generic Web.Telegram.API.Bot.Responses.GetMeResponse instance GHC.Show.Show Web.Telegram.API.Bot.Responses.GetMeResponse instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Responses.GetMeResponse instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Responses.GetMeResponse instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Responses.MessageResponse instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Responses.MessageResponse instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Responses.ChatActionResponse instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Responses.ChatActionResponse instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Responses.UpdatesResponse instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Responses.UpdatesResponse instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Responses.FileResponse instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Responses.FileResponse instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Responses.UserProfilePhotosResponse instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Responses.UserProfilePhotosResponse instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Responses.SetWebhookResponse instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Responses.SetWebhookResponse instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Responses.InlineQueryResponse instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Responses.InlineQueryResponse -- | This module contains data objects which represents requests to -- Telegram Bot API module Web.Telegram.API.Bot.Requests -- | This object represents data (image, video, ...) to upload. data FileUploadContent FileUploadFile :: FilePath -> FileUploadContent FileUploadBS :: ByteString -> FileUploadContent FileUploadLBS :: ByteString -> FileUploadContent -- | This object represents data (image, video, ...) with mime type to -- upload. data FileUpload FileUpload :: MimeType -> FileUploadContent -> FileUpload -- | Mime type of the upload. [fileUpload_type] :: FileUpload -> MimeType -- | The payload/source to upload. [fileUpload_content] :: FileUpload -> FileUploadContent -- | This object represents request for sendMessage data SendMessageRequest SendMessageRequest :: Text -> Text -> Maybe ParseMode -> Maybe Bool -> Maybe Int -> Maybe ReplyKeyboard -> SendMessageRequest -- | Unique identifier for the target chat or username of the target -- channel (in the format @channelusername) [message_chat_id] :: SendMessageRequest -> Text -- | Text of the message to be sent [message_text] :: SendMessageRequest -> Text -- | Send Markdown, if you want Telegram apps to show bold, italic -- and inline URLs in your bot's message [message_parse_mode] :: SendMessageRequest -> Maybe ParseMode -- | Disables link previews for links in this message [message_disable_web_page_preview] :: SendMessageRequest -> Maybe Bool -- | If the message is a reply, ID of the original message [message_reply_to_message_id] :: SendMessageRequest -> Maybe Int -- | Additional interface options. A JSON-serialized object for a custom -- reply keyboard, instructions to hide keyboard or to force a reply from -- the user. [message_reply_markup] :: SendMessageRequest -> Maybe ReplyKeyboard -- | This object represents request for forwardMessage data ForwardMessageRequest ForwardMessageRequest :: Text -> Text -> Int -> ForwardMessageRequest -- | Unique identifier for the target chat or username of the target -- channel (in the format @channelusername) [forward_chat_id] :: ForwardMessageRequest -> Text -- | Unique identifier for the chat where the original message was sent (or -- channel username in the format @channelusername) [forward_from_chat_id] :: ForwardMessageRequest -> Text -- | Unique message identifier [forward_mesage_id] :: ForwardMessageRequest -> Int -- | This object represents request for sendPhoto data SendPhotoRequest payload SendPhotoRequest :: Text -> payload -> Maybe Text -> Maybe Int -> Maybe ReplyKeyboard -> SendPhotoRequest payload -- | Unique identifier for the target chat or username of the target -- channel (in the format @channelusername) [photo_chat_id] :: SendPhotoRequest payload -> Text -- | Photo to send. Pass a file_id as String to resend a photo that is -- already on the Telegram servers [photo_photo] :: SendPhotoRequest payload -> payload -- | Photo caption (may also be used when resending photos by file_id), -- 0-200 characters. [photo_caption] :: SendPhotoRequest payload -> Maybe Text -- | If the message is a reply, ID of the original message [photo_reply_to_message_id] :: SendPhotoRequest payload -> Maybe Int -- | Additional interface options. A JSON-serialized object for a custom -- reply keyboard, instructions to hide keyboard or to force a reply from -- the user. [photo_reply_markup] :: SendPhotoRequest payload -> Maybe ReplyKeyboard -- | This object represents request for sendAudio data SendAudioRequest SendAudioRequest :: Text -> Text -> Maybe Int -> Maybe Text -> Maybe Text -> Maybe Int -> Maybe ReplyKeyboard -> SendAudioRequest -- | Unique identifier for the target chat or username of the target -- channel (in the format @channelusername) [_audio_chat_id] :: SendAudioRequest -> Text -- | Audio file to send. Pass a file_id as String to resend an audio that -- is already on the Telegram servers. [_audio_audio] :: SendAudioRequest -> Text -- | Duration of the audio in seconds [_audio_duration] :: SendAudioRequest -> Maybe Int -- | Performer [_audio_performer] :: SendAudioRequest -> Maybe Text -- | Track name [_audio_title] :: SendAudioRequest -> Maybe Text -- | If the message is a reply, ID of the original message [_audio_reply_to_message_id] :: SendAudioRequest -> Maybe Int -- | Additional interface options. A JSON-serialized object for a custom -- reply keyboard, instructions to hide keyboard or to force a reply from -- the user. [_audio_reply_markup] :: SendAudioRequest -> Maybe ReplyKeyboard -- | This object represents request for sendDocument data SendDocumentRequest SendDocumentRequest :: Text -> Text -> Maybe Int -> Maybe ReplyKeyboard -> SendDocumentRequest -- | Unique identifier for the target chat or username of the target -- channel (in the format @channelusername) [document_chat_id] :: SendDocumentRequest -> Text -- | File to send. A file_id as String to resend a file that is already on -- the Telegram servers [document_document] :: SendDocumentRequest -> Text -- | If the message is a reply, ID of the original message [document_reply_to_message_id] :: SendDocumentRequest -> Maybe Int -- | Additional interface options. A JSON-serialized object for a custom -- reply keyboard, instructions to hide keyboard or to force a reply from -- the user. [document_reply_markup] :: SendDocumentRequest -> Maybe ReplyKeyboard -- | This object represents request for sendSticker data SendStickerRequest SendStickerRequest :: Text -> Text -> Maybe Int -> Maybe ReplyKeyboard -> SendStickerRequest -- | Unique identifier for the target chat or username of the target -- channel (in the format @channelusername) [sticker_chat_id] :: SendStickerRequest -> Text -- | Sticker to send. A file_id as String to resend a sticker that is -- already on the Telegram servers [sticker_sticker] :: SendStickerRequest -> Text -- | If the message is a reply, ID of the original message [sticker_reply_to_message_id] :: SendStickerRequest -> Maybe Int -- | Additional interface options. A JSON-serialized object for a custom -- reply keyboard, instructions to hide keyboard or to force a reply from -- the user. [sticker_reply_markup] :: SendStickerRequest -> Maybe ReplyKeyboard -- | This object represents request for sendVideo data SendVideoRequest SendVideoRequest :: Text -> Text -> Maybe Int -> Maybe Text -> Maybe Int -> Maybe ReplyKeyboard -> SendVideoRequest -- | Unique identifier for the target chat or username of the target -- channel (in the format @channelusername) [_video_chat_id] :: SendVideoRequest -> Text -- | Video to send. A file_id as String to resend a video that is already -- on the Telegram servers [_video_video] :: SendVideoRequest -> Text -- | Duration of sent video in seconds [_video_duration] :: SendVideoRequest -> Maybe Int -- | Video caption, 0-200 characters. [_video_caption] :: SendVideoRequest -> Maybe Text -- | If the message is a reply, ID of the original message [_video_reply_to_message_id] :: SendVideoRequest -> Maybe Int -- | Additional interface options. A JSON-serialized object for a custom -- reply keyboard, instructions to hide keyboard or to force a reply from -- the user. [_video_reply_markup] :: SendVideoRequest -> Maybe ReplyKeyboard -- | This object represents request for sendVoice data SendVoiceRequest SendVoiceRequest :: Text -> Text -> Maybe Int -> Maybe Int -> Maybe ReplyKeyboard -> SendVoiceRequest -- | Unique identifier for the target chat or username of the target -- channel (in the format @channelusername) [_voice_chat_id] :: SendVoiceRequest -> Text -- | Audio file to send. A file_id as String to resend an audio that is -- already on the Telegram servers [_voice_voice] :: SendVoiceRequest -> Text -- | Duration of sent audio in seconds [_voice_duration] :: SendVoiceRequest -> Maybe Int -- | If the message is a reply, ID of the original message [_voice_reply_to_message_id] :: SendVoiceRequest -> Maybe Int -- | Additional interface options. A JSON-serialized object for a custom -- reply keyboard, instructions to hide keyboard or to force a reply from -- the user. [_voice_reply_markup] :: SendVoiceRequest -> Maybe ReplyKeyboard -- | This object represents request for sendLocation data SendLocationRequest SendLocationRequest :: Text -> Float -> Float -> Maybe Int -> Maybe ReplyKeyboard -> SendLocationRequest -- | Unique identifier for the target chat or username of the target -- channel (in the format @channelusername) [location_chat_id] :: SendLocationRequest -> Text -- | Latitude of location [location_latitude] :: SendLocationRequest -> Float -- | Longitude of location [location_longitude] :: SendLocationRequest -> Float -- | If the message is a reply, ID of the original message [location_reply_to_message_id] :: SendLocationRequest -> Maybe Int -- | Additional interface options. A JSON-serialized object for a custom -- reply keyboard, instructions to hide keyboard or to force a reply from -- the user. [location_reply_markup] :: SendLocationRequest -> Maybe ReplyKeyboard -- | This object represents request for sendChatAction data SendChatActionRequest SendChatActionRequest :: Text -> ChatAction -> SendChatActionRequest [action_chat_id] :: SendChatActionRequest -> Text [action_action] :: SendChatActionRequest -> ChatAction -- | Type of action to broadcast. data ChatAction Typing :: ChatAction UploadPhoto :: ChatAction RecordVideo :: ChatAction UploadVideo :: ChatAction RecordAudio :: ChatAction UploadAudio :: ChatAction UploadDocument :: ChatAction FindLocation :: ChatAction data AnswerInlineQueryRequest AnswerInlineQueryRequest :: Text -> [InlineQueryResult] -> Maybe Int -> Maybe Bool -> Maybe Text -> AnswerInlineQueryRequest -- | Unique identifier for the answered query [query_inline_query_id] :: AnswerInlineQueryRequest -> Text -- | A JSON-serialized array of results for the inline query [query_results] :: AnswerInlineQueryRequest -> [InlineQueryResult] -- | The maximum amount of time in seconds that the result of the inline -- query may be cached on the server. Defaults to 300. [query_cache_time] :: AnswerInlineQueryRequest -> Maybe Int -- | 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_is_personal] :: AnswerInlineQueryRequest -> Maybe Bool -- | 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_next_offset] :: AnswerInlineQueryRequest -> Maybe Text data ReplyKeyboard -- | This object represents a custom keyboard with reply options ReplyKeyboardMarkup :: [[Text]] -> Maybe Bool -> Maybe Bool -> Maybe Bool -> ReplyKeyboard -- | Array of button rows, each represented by an Array of Strings [reply_keyboard] :: ReplyKeyboard -> [[Text]] -- | 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_resize_keyboard] :: ReplyKeyboard -> Maybe Bool -- | Requests clients to hide the keyboard as soon as it's been used. -- Defaults to false. [reply_one_time_keyboard] :: ReplyKeyboard -> 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. [reply_selective] :: ReplyKeyboard -> Maybe Bool -- | 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 ReplyKeyboardHide :: Bool -> Maybe Bool -> ReplyKeyboard -- | Requests clients to hide the custom keyboard [reply_hide_keyboard] :: ReplyKeyboard -> 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. [reply_selective] :: ReplyKeyboard -> Maybe Bool -- | 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. ForceReply :: Bool -> Maybe Bool -> ReplyKeyboard -- | Shows reply interface to the user, as if they manually selected the -- bot‘s message and tapped ’Reply' [reply_force_reply] :: ReplyKeyboard -> 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. [reply_selective] :: ReplyKeyboard -> Maybe Bool instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_5SendMessageRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_4SendMessageRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_3SendMessageRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2SendMessageRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1SendMessageRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0SendMessageRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0SendMessageRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1SendMessageRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_4SendPhotoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_3SendPhotoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2SendPhotoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1SendPhotoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0SendPhotoRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0SendPhotoRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1SendPhotoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_6SendAudioRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_5SendAudioRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_4SendAudioRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_3SendAudioRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2SendAudioRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1SendAudioRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0SendAudioRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0SendAudioRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1SendAudioRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_3SendStickerRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2SendStickerRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1SendStickerRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0SendStickerRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0SendStickerRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1SendStickerRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_3SendDocumentRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2SendDocumentRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1SendDocumentRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0SendDocumentRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0SendDocumentRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1SendDocumentRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_5SendVideoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_4SendVideoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_3SendVideoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2SendVideoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1SendVideoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0SendVideoRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0SendVideoRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1SendVideoRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_4SendVoiceRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_3SendVoiceRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2SendVoiceRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1SendVoiceRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0SendVoiceRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0SendVoiceRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1SendVoiceRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_4SendLocationRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_3SendLocationRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2SendLocationRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1SendLocationRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0SendLocationRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0SendLocationRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1SendLocationRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_2_1ReplyKeyboard instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_2_0ReplyKeyboard instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_1_1ReplyKeyboard instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_1_0ReplyKeyboard instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_3ReplyKeyboard instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2ReplyKeyboard instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1ReplyKeyboard instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0ReplyKeyboard instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_2ReplyKeyboard instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_1ReplyKeyboard instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0ReplyKeyboard instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1ReplyKeyboard instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_4AnswerInlineQueryRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_3AnswerInlineQueryRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2AnswerInlineQueryRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1AnswerInlineQueryRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0AnswerInlineQueryRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0AnswerInlineQueryRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1AnswerInlineQueryRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1SendChatActionRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0SendChatActionRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0SendChatActionRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1SendChatActionRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_7ChatAction instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_6ChatAction instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_5ChatAction instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_4ChatAction instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_3ChatAction instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_2ChatAction instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_1ChatAction instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0ChatAction instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1ChatAction instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_2ForwardMessageRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_1ForwardMessageRequest instance GHC.Generics.Selector Web.Telegram.API.Bot.Requests.S1_0_0ForwardMessageRequest instance GHC.Generics.Constructor Web.Telegram.API.Bot.Requests.C1_0ForwardMessageRequest instance GHC.Generics.Datatype Web.Telegram.API.Bot.Requests.D1ForwardMessageRequest instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.SendMessageRequest instance GHC.Show.Show Web.Telegram.API.Bot.Requests.SendMessageRequest instance GHC.Generics.Generic (Web.Telegram.API.Bot.Requests.SendPhotoRequest payload) instance GHC.Show.Show payload => GHC.Show.Show (Web.Telegram.API.Bot.Requests.SendPhotoRequest payload) instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.SendAudioRequest instance GHC.Show.Show Web.Telegram.API.Bot.Requests.SendAudioRequest instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.SendStickerRequest instance GHC.Show.Show Web.Telegram.API.Bot.Requests.SendStickerRequest instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.SendDocumentRequest instance GHC.Show.Show Web.Telegram.API.Bot.Requests.SendDocumentRequest instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.SendVideoRequest instance GHC.Show.Show Web.Telegram.API.Bot.Requests.SendVideoRequest instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.SendVoiceRequest instance GHC.Show.Show Web.Telegram.API.Bot.Requests.SendVoiceRequest instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.SendLocationRequest instance GHC.Show.Show Web.Telegram.API.Bot.Requests.SendLocationRequest instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.ReplyKeyboard instance GHC.Show.Show Web.Telegram.API.Bot.Requests.ReplyKeyboard instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.AnswerInlineQueryRequest instance GHC.Show.Show Web.Telegram.API.Bot.Requests.AnswerInlineQueryRequest instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.SendChatActionRequest instance GHC.Show.Show Web.Telegram.API.Bot.Requests.SendChatActionRequest instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.ChatAction instance GHC.Show.Show Web.Telegram.API.Bot.Requests.ChatAction instance GHC.Generics.Generic Web.Telegram.API.Bot.Requests.ForwardMessageRequest instance GHC.Show.Show Web.Telegram.API.Bot.Requests.ForwardMessageRequest instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.SendMessageRequest instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.SendMessageRequest instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.ForwardMessageRequest instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.ForwardMessageRequest instance Data.Aeson.Types.Class.ToJSON (Web.Telegram.API.Bot.Requests.SendPhotoRequest Data.Text.Internal.Text) instance Data.Aeson.Types.Class.FromJSON (Web.Telegram.API.Bot.Requests.SendPhotoRequest Data.Text.Internal.Text) instance Servant.Client.MultipartFormData.ToMultipartFormData (Web.Telegram.API.Bot.Requests.SendPhotoRequest Web.Telegram.API.Bot.Requests.FileUpload) instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.SendAudioRequest instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.SendAudioRequest instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.SendStickerRequest instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.SendStickerRequest instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.SendDocumentRequest instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.SendDocumentRequest instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.SendVideoRequest instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.SendVideoRequest instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.SendVoiceRequest instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.SendVoiceRequest instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.SendLocationRequest instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.SendLocationRequest instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.ChatAction instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.ChatAction instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.SendChatActionRequest instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.SendChatActionRequest instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.AnswerInlineQueryRequest instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.AnswerInlineQueryRequest instance Data.Aeson.Types.Class.ToJSON Web.Telegram.API.Bot.Requests.ReplyKeyboard instance Data.Aeson.Types.Class.FromJSON Web.Telegram.API.Bot.Requests.ReplyKeyboard module Web.Telegram.API.Bot.API -- | A simple method for testing your bot's auth token. Requires no -- parameters. Returns basic information about the bot in form of a -- User object. getMe :: Token -> IO (Either ServantError GetMeResponse) -- | Use this method to send text messages. On success, the sent -- Message is returned. sendMessage :: Token -> SendMessageRequest -> IO (Either ServantError MessageResponse) -- | Use this method to forward messages of any kind. On success, the sent -- Message is returned. forwardMessage :: Token -> ForwardMessageRequest -> IO (Either ServantError MessageResponse) -- | Use this method to upload and send photos. On success, the sent -- Message is returned. sendPhoto :: Token -> SendPhotoRequest FileUpload -> IO (Either ServantError MessageResponse) -- | Use this method to send photos that have already been uploaded. On -- success, the sent Message is returned. sendPhotoById :: Token -> SendPhotoRequest Text -> IO (Either ServantError MessageResponse) -- | Use this method to send audio files, if you want Telegram clients to -- display them in the music player. Your audio must be in the .mp3 -- format. On success, the sent Message is returned. Bots can -- currently send audio files of up to 50 MB in size, this limit may be -- changed in the future. -- -- For backward compatibility, when the fields title and -- performer are both empty and the mime-type of the file to be -- sent is not _audio/mpeg_, the file will be sent as a playable voice -- message. For this to work, the audio must be in an .ogg file encoded -- with OPUS. This behavior will be phased out in the future. For sending -- voice messages, use the sendVoice method instead. sendAudio :: Token -> SendAudioRequest -> IO (Either ServantError MessageResponse) -- | Use this method to send general files. On success, the sent -- Message is returned. Bots can currently send files of any type -- of up to 50 MB in size, this limit may be changed in the future. sendDocument :: Token -> SendDocumentRequest -> IO (Either ServantError MessageResponse) -- | Use this method to send .webp stickers. On success, the sent -- Message is returned. sendSticker :: Token -> SendStickerRequest -> IO (Either ServantError MessageResponse) -- | Use this method to send video files, Telegram clients support mp4 -- videos (other formats may be sent as Document). On success, the -- sent Message is returned. Bots can currently send video files -- of up to 50 MB in size, this limit may be changed in the future. sendVideo :: Token -> SendVideoRequest -> IO (Either ServantError MessageResponse) -- | Use this method to send audio files, if you want Telegram clients to -- display the file as a playable voice message. For this to work, your -- audio must be in an .ogg file encoded with OPUS (other formats may be -- sent as Audio or Document). On success, the sent -- Message is returned. Bots can currently send voice messages of -- up to 50 MB in size, this limit may be changed in the future. sendVoice :: Token -> SendVoiceRequest -> IO (Either ServantError MessageResponse) -- | Use this method to send point on the map. On success, the sent -- Message is returned. sendLocation :: Token -> SendLocationRequest -> IO (Either ServantError MessageResponse) -- | Use this method when you need to tell the user that something is -- happening on the bot's side. The status is set for 5 seconds or less -- (when a message arrives from your bot, Telegram clients clear its -- typing status). sendChatAction :: Token -> SendChatActionRequest -> IO (Either ServantError ChatActionResponse) -- | Use this method to receive incoming updates using long polling. An -- Array of Update objects is returned. getUpdates :: Token -> Maybe Int -> Maybe Int -> Maybe Int -> IO (Either ServantError UpdatesResponse) -- | Use this method to get basic info about a file and prepare it for -- downloading. For the moment, bots can download files of up to 20MB in -- size. On success, a File object is returned. The file can then -- be downloaded via the link -- https://api.telegram.org/file/bot<token>/<file_path>, -- where file_path is taken from the response. It is -- guaranteed that the link will be valid for at least 1 hour. When the -- link expires, a new one can be requested by calling getFile again. getFile :: Token -> Text -> IO (Either ServantError FileResponse) -- | Use this method to get a list of profile pictures for a user. Returns -- a UserProfilePhotos object. getUserProfilePhotos :: Token -> Int -> Maybe Int -> Maybe Int -> IO (Either ServantError UserProfilePhotosResponse) -- | Use this method to specify a url and receive incoming updates via an -- outgoing webhook. Whenever there is an update for the bot, we will -- send an HTTPS POST request to the specified url, containing a -- JSON-serialized Update. In case of an unsuccessful request, we -- will give up after a reasonable amount of attempts. -- -- If you'd like to make sure that the Webhook request comes from -- Telegram, we recommend using a secret path in the URL, e.g. -- https://www.example.com/<token>. Since nobody -- else knows your bot‘s token, you can be pretty sure it’s us. setWebhook :: Token -> Maybe Text -> IO (Either ServantError SetWebhookResponse) answerInlineQuery :: Token -> AnswerInlineQueryRequest -> IO (Either ServantError InlineQueryResponse) -- | Telegram Bot API type TelegramBotAPI = (TelegramToken :> ("getMe" :> Get '[JSON] GetMeResponse)) :<|> ((TelegramToken :> ("sendMessage" :> (ReqBody '[JSON] SendMessageRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("forwardMessage" :> (ReqBody '[JSON] ForwardMessageRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("sendPhoto" :> (MultipartFormDataReqBody (SendPhotoRequest FileUpload) :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("sendPhoto" :> (ReqBody '[JSON] (SendPhotoRequest Text) :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("sendAudio" :> (ReqBody '[JSON] SendAudioRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("sendDocument" :> (ReqBody '[JSON] SendDocumentRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("sendSticker" :> (ReqBody '[JSON] SendStickerRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("sendVideo" :> (ReqBody '[JSON] SendVideoRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("sendVoice" :> (ReqBody '[JSON] SendVoiceRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("sendLocation" :> (ReqBody '[JSON] SendLocationRequest :> Post '[JSON] MessageResponse))) :<|> ((TelegramToken :> ("sendChatAction" :> (ReqBody '[JSON] SendChatActionRequest :> Post '[JSON] ChatActionResponse))) :<|> ((TelegramToken :> ("getUpdates" :> (QueryParam "offset" Int :> (QueryParam "limit" Int :> (QueryParam "timeout" Int :> Get '[JSON] UpdatesResponse))))) :<|> ((TelegramToken :> ("getFile" :> (QueryParam "file_id" Text :> Get '[JSON] FileResponse))) :<|> ((TelegramToken :> ("getUserProfilePhotos" :> (QueryParam "user_id" Int :> (QueryParam "offset" Int :> (QueryParam "limit" Int :> Get '[JSON] UserProfilePhotosResponse))))) :<|> ((TelegramToken :> ("setWebhook" :> (QueryParam "url" Text :> Get '[JSON] SetWebhookResponse))) :<|> (TelegramToken :> ("answerInlineQuery" :> (ReqBody '[JSON] AnswerInlineQueryRequest :> Post '[JSON] InlineQueryResponse)))))))))))))))))) -- | Proxy for Thelegram Bot API api :: Proxy TelegramBotAPI -- | Telegram Bot's Token newtype Token Token :: Text -> Token instance GHC.Classes.Ord Web.Telegram.API.Bot.API.Token instance GHC.Classes.Eq Web.Telegram.API.Bot.API.Token instance GHC.Show.Show Web.Telegram.API.Bot.API.Token instance Servant.Common.Text.ToText Web.Telegram.API.Bot.API.Token instance Servant.Common.Text.FromText Web.Telegram.API.Bot.API.Token -- | This module provides Telegram Bot API module Web.Telegram.API.Bot