Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TD.Data.InputStoryAreaType
Synopsis
- data InputStoryAreaType
- = InputStoryAreaTypeLocation { }
- | InputStoryAreaTypeFoundVenue { }
- | InputStoryAreaTypePreviousVenue { }
- | InputStoryAreaTypeSuggestedReaction { }
- | InputStoryAreaTypeMessage { }
- | InputStoryAreaTypeLink { }
- | InputStoryAreaTypeWeather {
- temperature :: Maybe Double
- emoji :: Maybe Text
- background_color :: Maybe Int
- | InputStoryAreaTypeUpgradedGift { }
Documentation
data InputStoryAreaType Source #
Describes type of clickable area on a story media to be added
Constructors
InputStoryAreaTypeLocation | An area pointing to a location |
InputStoryAreaTypeFoundVenue | An area pointing to a venue found by the bot getOption("venue_search_bot_username") |
InputStoryAreaTypePreviousVenue | An area pointing to a venue already added to the story |
InputStoryAreaTypeSuggestedReaction | An area pointing to a suggested reaction |
Fields
| |
InputStoryAreaTypeMessage | An area pointing to a message |
InputStoryAreaTypeLink | An area pointing to a HTTP or tg:// link |
InputStoryAreaTypeWeather | An area with information about weather |
Fields
| |
InputStoryAreaTypeUpgradedGift | An area with an upgraded gift |
Instances
FromJSON InputStoryAreaType Source # | |
Defined in TD.Data.InputStoryAreaType Methods parseJSON :: Value -> Parser InputStoryAreaType # parseJSONList :: Value -> Parser [InputStoryAreaType] # | |
ToJSON InputStoryAreaType Source # | |
Defined in TD.Data.InputStoryAreaType Methods toJSON :: InputStoryAreaType -> Value # toEncoding :: InputStoryAreaType -> Encoding # toJSONList :: [InputStoryAreaType] -> Value # toEncodingList :: [InputStoryAreaType] -> Encoding # | |
Show InputStoryAreaType Source # | |
Defined in TD.Data.InputStoryAreaType Methods showsPrec :: Int -> InputStoryAreaType -> ShowS # show :: InputStoryAreaType -> String # showList :: [InputStoryAreaType] -> ShowS # | |
Eq InputStoryAreaType Source # | |
Defined in TD.Data.InputStoryAreaType Methods (==) :: InputStoryAreaType -> InputStoryAreaType -> Bool # (/=) :: InputStoryAreaType -> InputStoryAreaType -> Bool # | |
ShortShow InputStoryAreaType Source # | |
Defined in TD.Data.InputStoryAreaType Methods shortShow :: InputStoryAreaType -> String Source # |