Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data MessageOrigin
- = MessageOriginUser { }
- | MessageOriginHiddenUser {
- sender_name :: Maybe Text
- | MessageOriginChat { }
- | MessageOriginChannel {
- chat_id :: Maybe Int
- message_id :: Maybe Int
- author_signature :: Maybe Text
Documentation
data MessageOrigin Source #
Contains information about the origin of a message
MessageOriginUser | The message was originally sent by a known user |
| |
MessageOriginHiddenUser | The message was originally sent by a user, which is hidden by their privacy settings |
| |
MessageOriginChat | The message was originally sent on behalf of a chat |
| |
MessageOriginChannel | The message was originally a post in a channel |
|
Instances
FromJSON MessageOrigin Source # | |
Defined in TD.Data.MessageOrigin parseJSON :: Value -> Parser MessageOrigin # parseJSONList :: Value -> Parser [MessageOrigin] # | |
Show MessageOrigin Source # | |
Defined in TD.Data.MessageOrigin showsPrec :: Int -> MessageOrigin -> ShowS # show :: MessageOrigin -> String # showList :: [MessageOrigin] -> ShowS # | |
Eq MessageOrigin Source # | |
Defined in TD.Data.MessageOrigin (==) :: MessageOrigin -> MessageOrigin -> Bool # (/=) :: MessageOrigin -> MessageOrigin -> Bool # | |
ShortShow MessageOrigin Source # | |
Defined in TD.Data.MessageOrigin shortShow :: MessageOrigin -> String Source # |