| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
TD.Data.RichText
Synopsis
- data RichText
- = RichTextPlain { }
- | RichTextBold { }
- | RichTextItalic { }
- | RichTextUnderline { }
- | RichTextStrikethrough { }
- | RichTextSpoiler { }
- | RichTextDateTime { }
- | RichTextMention { }
- | RichTextHashtag { }
- | RichTextCashtag { }
- | RichTextBotCommand { }
- | RichTextFixed { }
- | RichTextMentionName { }
- | RichTextUrl { }
- | RichTextEmailAddress { }
- | RichTextBankCardNumber { }
- | RichTextSubscript { }
- | RichTextSuperscript { }
- | RichTextMarked { }
- | RichTextPhoneNumber { }
- | RichTextCustomEmoji { }
- | RichTextIcon { }
- | RichTextMathematicalExpression {
- expression :: Maybe Text
- | RichTextReference { }
- | RichTextReferenceLink { }
- | RichTextAnchor { }
- | RichTextAnchorLink { }
- | RichTexts { }
Documentation
Describes a formatted text object
Constructors
| RichTextPlain | A plain text |
| RichTextBold | A bold rich text |
| RichTextItalic | An italicized rich text |
| RichTextUnderline | An underlined rich text |
| RichTextStrikethrough | A strikethrough rich text |
| RichTextSpoiler | A spoilered rich text |
| RichTextDateTime | A date and time |
Fields
| |
| RichTextMention | A mention of a Telegram user or chat by a username |
| RichTextHashtag | A hashtag |
| RichTextCashtag | A cashtag |
| RichTextBotCommand | A bot command |
| RichTextFixed | A fixed-width rich text |
| RichTextMentionName | A rich text that serves as a mention of a user |
| RichTextUrl | A rich text URL link |
| RichTextEmailAddress | A rich text email address |
| RichTextBankCardNumber | A bank card number |
| RichTextSubscript | A subscript rich text |
| RichTextSuperscript | A superscript rich text |
| RichTextMarked | A marked rich text |
| RichTextPhoneNumber | A rich text phone number |
| RichTextCustomEmoji | A custom emoji |
Fields
| |
| RichTextIcon | A small image inside the text; instant view only |
| RichTextMathematicalExpression | A mathematical expression |
Fields
| |
| RichTextReference | A reference |
| RichTextReferenceLink | A link to a reference on the same page |
| RichTextAnchor | An anchor |
| RichTextAnchorLink | A link to an anchor on the same page |
| RichTexts | A concatenation of rich texts |