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 :: 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.
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 | |
|