| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
TD.Data.InputPageBlock
Synopsis
- data InputPageBlock
- = InputPageBlockSectionHeading { }
- | InputPageBlockParagraph { }
- | InputPageBlockPreformatted { }
- | InputPageBlockFooter { }
- | InputPageBlockThinking { }
- | InputPageBlockDivider
- | InputPageBlockMathematicalExpression {
- expression :: Maybe Text
- | InputPageBlockAnchor { }
- | InputPageBlockList { }
- | InputPageBlockBlockQuote { }
- | InputPageBlockPullQuote { }
- | InputPageBlockAnimation { }
- | InputPageBlockAudio { }
- | InputPageBlockPhoto { }
- | InputPageBlockVideo { }
- | InputPageBlockVoiceNote { }
- | InputPageBlockCollage { }
- | InputPageBlockSlideshow { }
- | InputPageBlockTable {
- _caption :: Maybe RichText
- cells :: Maybe [[PageBlockTableCell]]
- is_bordered :: Maybe Bool
- is_striped :: Maybe Bool
- | InputPageBlockDetails { }
- | InputPageBlockMap { }
Documentation
data InputPageBlock Source #
Describes a block of a rich message to send
Constructors
| InputPageBlockSectionHeading | A section heading |
| InputPageBlockParagraph | A text paragraph |
| InputPageBlockPreformatted | A preformatted text paragraph |
| InputPageBlockFooter | The footer of the page |
| InputPageBlockThinking | A "Thinking..." placeholder; for pending rich messages only; for bots only |
| InputPageBlockDivider | An empty block separating the page |
| InputPageBlockMathematicalExpression | A mathematical expression |
Fields
| |
| InputPageBlockAnchor | An invisible anchor |
| InputPageBlockList | A list of data blocks |
Fields
| |
| InputPageBlockBlockQuote | A block quote |
| InputPageBlockPullQuote | A pull quote |
| InputPageBlockAnimation | An animation |
Fields
| |
| InputPageBlockAudio | An audio file |
Fields
| |
| InputPageBlockPhoto | A photo |
Fields
| |
| InputPageBlockVideo | A video |
Fields
| |
| InputPageBlockVoiceNote | A voice note |
Fields
| |
| InputPageBlockCollage | A collage |
Fields
| |
| InputPageBlockSlideshow | A slideshow |
Fields
| |
| InputPageBlockTable | A table |
Fields
| |
| InputPageBlockDetails | A collapsible block |
| InputPageBlockMap | A map. The map's width and height must not exceed 10000 in total. Width and height ratio must be at most 20 |
Instances
| FromJSON InputPageBlock Source # | |
Defined in TD.Data.InputPageBlock Methods parseJSON :: Value -> Parser InputPageBlock # parseJSONList :: Value -> Parser [InputPageBlock] # | |
| ToJSON InputPageBlock Source # | |
Defined in TD.Data.InputPageBlock Methods toJSON :: InputPageBlock -> Value # toEncoding :: InputPageBlock -> Encoding # toJSONList :: [InputPageBlock] -> Value # toEncodingList :: [InputPageBlock] -> Encoding # | |
| Show InputPageBlock Source # | |
Defined in TD.Data.InputPageBlock Methods showsPrec :: Int -> InputPageBlock -> ShowS # show :: InputPageBlock -> String # showList :: [InputPageBlock] -> ShowS # | |
| Eq InputPageBlock Source # | |
Defined in TD.Data.InputPageBlock Methods (==) :: InputPageBlock -> InputPageBlock -> Bool # (/=) :: InputPageBlock -> InputPageBlock -> Bool # | |
| ShortShow InputPageBlock Source # | |
Defined in TD.Data.InputPageBlock Methods shortShow :: InputPageBlock -> String Source # | |