Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data ChatAction
- = ChatActionTyping
- | ChatActionRecordingVideo
- | ChatActionUploadingVideo { }
- | ChatActionRecordingVoiceNote
- | ChatActionUploadingVoiceNote { }
- | ChatActionUploadingPhoto { }
- | ChatActionUploadingDocument { }
- | ChatActionChoosingSticker
- | ChatActionChoosingLocation
- | ChatActionChoosingContact
- | ChatActionStartPlayingGame
- | ChatActionRecordingVideoNote
- | ChatActionUploadingVideoNote { }
- | ChatActionWatchingAnimations { }
- | ChatActionCancel
Documentation
data ChatAction Source #
Describes the different types of activity in a chat
ChatActionTyping | The user is typing a message |
ChatActionRecordingVideo | The user is recording a video |
ChatActionUploadingVideo | The user is uploading a video |
ChatActionRecordingVoiceNote | The user is recording a voice note |
ChatActionUploadingVoiceNote | The user is uploading a voice note |
ChatActionUploadingPhoto | The user is uploading a photo |
ChatActionUploadingDocument | The user is uploading a document |
ChatActionChoosingSticker | The user is picking a sticker to send |
ChatActionChoosingLocation | The user is picking a location or venue to send |
ChatActionChoosingContact | The user is picking a contact to send |
ChatActionStartPlayingGame | The user has started to play a game |
ChatActionRecordingVideoNote | The user is recording a video note |
ChatActionUploadingVideoNote | The user is uploading a video note |
ChatActionWatchingAnimations | The user is watching animations sent by the other party by clicking on an animated emoji |
ChatActionCancel | The user has canceled the previous action |
Instances
FromJSON ChatAction Source # | |
Defined in TD.Data.ChatAction parseJSON :: Value -> Parser ChatAction # parseJSONList :: Value -> Parser [ChatAction] # | |
ToJSON ChatAction Source # | |
Defined in TD.Data.ChatAction toJSON :: ChatAction -> Value # toEncoding :: ChatAction -> Encoding # toJSONList :: [ChatAction] -> Value # toEncodingList :: [ChatAction] -> Encoding # | |
Show ChatAction Source # | |
Defined in TD.Data.ChatAction showsPrec :: Int -> ChatAction -> ShowS # show :: ChatAction -> String # showList :: [ChatAction] -> ShowS # | |
Eq ChatAction Source # | |
Defined in TD.Data.ChatAction (==) :: ChatAction -> ChatAction -> Bool # (/=) :: ChatAction -> ChatAction -> Bool # | |
ShortShow ChatAction Source # | |
Defined in TD.Data.ChatAction shortShow :: ChatAction -> String Source # |