Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains objects which represent data of Telegram Bot API responses
- data User = User {}
- data Chat = Chat {}
- data Message = Message {
- message_id :: Int
- from :: Maybe User
- date :: Int
- chat :: Chat
- forward_from :: Maybe User
- forward_date :: Maybe Int
- reply_to_message :: Maybe Message
- text :: Maybe Text
- audio :: Maybe Audio
- document :: Maybe Document
- photo :: Maybe [PhotoSize]
- sticker :: Maybe Sticker
- video :: Maybe Video
- voice :: Maybe Voice
- caption :: Maybe Text
- contact :: Maybe Contact
- location :: Maybe Location
- new_chat_participant :: Maybe User
- left_chat_participant :: Maybe User
- new_chat_title :: Maybe Text
- new_chat_photo :: Maybe [PhotoSize]
- delete_chat_photo :: Maybe Bool
- group_chat_created :: Maybe Bool
- supergroup_chat_created :: Maybe Bool
- channel_chat_created :: Maybe Bool
- migrate_to_chat_id :: Maybe Int
- migrate_from_chat_id :: Maybe Int
- data PhotoSize = PhotoSize {}
- data Audio = Audio {}
- data Document = Document {}
- data Sticker = Sticker {}
- data Video = Video {}
- data Voice = Voice {}
- data Contact = Contact {}
- data Location = Location {}
- data Update = Update {}
- data File = File {}
- data UserProfilePhotos = UserProfilePhotos {
- total_count :: Int
- photos :: [[PhotoSize]]
- data InlineQuery = InlineQuery {
- query_id :: Text
- query_from :: User
- query_query :: Text
- query_offset :: Text
- data ChosenInlineResult = ChosenInlineResult {}
- data InlineQueryResult
- = InlineQueryResultArticle {
- iq_res_id :: Text
- iq_res_title :: Maybe Text
- iq_res_message_text :: Maybe Text
- iq_res_parse_mode :: Maybe ParseMode
- iq_res_disable_web_page_preview :: Maybe Bool
- iq_res_url :: Maybe Text
- iq_res_hide_url :: Maybe Bool
- iq_res_description :: Maybe Text
- iq_res_thumb_url :: Maybe Text
- iq_res_thumb_width :: Maybe Int
- iq_res_thumb_height :: Maybe Int
- | InlineQueryResultPhoto {
- iq_res_id :: Text
- iq_res_photo_url :: Text
- iq_res_photo_width :: Maybe Int
- iq_res_photo_height :: Maybe Int
- iq_res_thumb_url :: Maybe Text
- iq_res_title :: Maybe Text
- iq_res_description :: Maybe Text
- iq_res_caption :: Maybe Text
- iq_res_message_text :: Maybe Text
- iq_res_parse_mode :: Maybe ParseMode
- iq_res_disable_web_page_preview :: Maybe Bool
- | InlineQueryResultGif { }
- | InlineQueryResultMpeg4Gif {
- iq_res_id :: Text
- iq_res_mpeg4_url :: Text
- iq_res_mpeg4_width :: Maybe Int
- iq_res_mpeg4_height :: Maybe Int
- iq_res_thumb_url :: Maybe Text
- iq_res_title :: Maybe Text
- iq_res_caption :: Maybe Text
- iq_res_message_text :: Maybe Text
- iq_res_parse_mode :: Maybe ParseMode
- iq_res_disable_web_page_preview :: Maybe Bool
- | InlineQueryResultVideo {
- iq_res_id :: Text
- iq_res_video_url :: Text
- iq_res_mime_type :: Text
- iq_res_message_text :: Maybe Text
- iq_res_parse_mode :: Maybe ParseMode
- iq_res_disable_web_page_preview :: Maybe Bool
- iq_res_video_width :: Maybe Int
- iq_res_video_height :: Maybe Int
- iq_res_video_duration :: Maybe Int
- iq_res_thumb_url :: Maybe Text
- iq_res_title :: Maybe Text
- iq_res_description :: Maybe Text
- = InlineQueryResultArticle {
- data ChatType
- = Private
- | Group
- | Supergroup
- | Channel
- data ParseMode = Markdown
Types
This object represents a Telegram user or bot.
User | |
|
This object represents a chat.
Chat | |
|
This object represents a message.
Message | |
|
PhotoSize | |
|
This object represents an audio file to be treated as music by the Telegram clients.
Audio | |
|
Document | |
|
This object represents a sticker.
Sticker | |
|
This object represents a video file.
Video | |
|
This object represents a voice note.
Voice | |
|
This object represents a phone contact.
Contact | |
|
This object represents a point on the map.
This object represents an incoming update. Only one of the optional parameters can be present in any given update.
Update | |
|
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 UserProfilePhotos Source
This object represent a user's profile pictures.
UserProfilePhotos | |
|
data InlineQuery Source
This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.
InlineQuery | |
|
data ChosenInlineResult Source
This object represents a result of an inline query that was chosen by the user and sent to their chat partner.
ChosenInlineResult | |
|
data InlineQueryResult Source
InlineQueryResultArticle | Represents a link to an article or web page. |
| |
InlineQueryResultPhoto | 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. |
| |
InlineQueryResultGif | 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. |
| |
InlineQueryResultMpeg4Gif | 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. |
| |
InlineQueryResultVideo | Represents link to a page containing an embedded video player or a video file. |
|
Type of chat.