Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data StoryAreaType
- = StoryAreaTypeLocation { }
- | StoryAreaTypeVenue { }
- | StoryAreaTypeSuggestedReaction { }
- | StoryAreaTypeMessage { }
- | StoryAreaTypeLink { }
- | StoryAreaTypeWeather {
- temperature :: Maybe Double
- emoji :: Maybe Text
- background_color :: Maybe Int
Documentation
data StoryAreaType Source #
Describes type of clickable area on a story media
StoryAreaTypeLocation | An area pointing to a location |
StoryAreaTypeVenue | An area pointing to a venue |
StoryAreaTypeSuggestedReaction | An area pointing to a suggested reaction. App needs to show a clickable reaction on the area and call setStoryReaction when the are is clicked |
| |
StoryAreaTypeMessage | An area pointing to a message |
StoryAreaTypeLink | An area pointing to a HTTP or tg:// link |
StoryAreaTypeWeather | An area with information about weather |
|
Instances
FromJSON StoryAreaType Source # | |
Defined in TD.Data.StoryAreaType parseJSON :: Value -> Parser StoryAreaType # parseJSONList :: Value -> Parser [StoryAreaType] # | |
Show StoryAreaType Source # | |
Defined in TD.Data.StoryAreaType showsPrec :: Int -> StoryAreaType -> ShowS # show :: StoryAreaType -> String # showList :: [StoryAreaType] -> ShowS # | |
Eq StoryAreaType Source # | |
Defined in TD.Data.StoryAreaType (==) :: StoryAreaType -> StoryAreaType -> Bool # (/=) :: StoryAreaType -> StoryAreaType -> Bool # | |
ShortShow StoryAreaType Source # | |
Defined in TD.Data.StoryAreaType shortShow :: StoryAreaType -> String Source # |