Safe Haskell | None |
---|---|
Language | Haskell2010 |
Web.Telegram.API.Bot.Data
Contents
Description
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 :: 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 ChatType
- = Private
- | Group
- | Supergroup
- | Channel
Types
This object represents a Telegram user or bot.
Constructors
User | |
Fields
|
This object represents a chat.
Constructors
Chat | |
Fields
|
This object represents a message.
Constructors
Message | |
Fields
|
Constructors
PhotoSize | |
Fields
|
This object represents an audio file to be treated as music by the Telegram clients.
Constructors
Audio | |
Fields
|
Constructors
Document | |
Fields
|
This object represents a sticker.
Constructors
Sticker | |
Fields
|
This object represents a video file.
Constructors
Video | |
Fields
|
This object represents a voice note.
Constructors
Voice | |
Fields
|
This object represents a phone contact.
Constructors
Contact | |
Fields
|
This object represents a point on the map.
Constructors
Location | |
This object represents an incoming update. Only one of the optional parameters can be present in any given update.
Constructors
Update | |
Fields
|
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
Constructors
File | |
data UserProfilePhotos Source
This object represent a user's profile pictures.
Constructors
UserProfilePhotos | |
Fields
|