haskell-tdlib-2.1.22.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.RichText

Synopsis

Documentation

data RichText Source #

Describes a formatted text object

Constructors

RichTextPlain

A plain text

Fields

RichTextBold

A bold rich text

Fields

RichTextItalic

An italicized rich text

Fields

RichTextUnderline

An underlined rich text

Fields

RichTextStrikethrough

A strikethrough rich text

Fields

RichTextSpoiler

A spoilered rich text

Fields

RichTextDateTime

A date and time

Fields

RichTextMention

A mention of a Telegram user or chat by a username

Fields

RichTextHashtag

A hashtag

Fields

RichTextCashtag

A cashtag

Fields

RichTextBotCommand

A bot command

Fields

RichTextFixed

A fixed-width rich text

Fields

RichTextMentionName

A rich text that serves as a mention of a user

Fields

RichTextUrl

A rich text URL link

Fields

RichTextEmailAddress

A rich text email address

Fields

RichTextBankCardNumber

A bank card number

Fields

RichTextSubscript

A subscript rich text

Fields

RichTextSuperscript

A superscript rich text

Fields

RichTextMarked

A marked rich text

Fields

RichTextPhoneNumber

A rich text phone number

Fields

RichTextCustomEmoji

A custom emoji

Fields

RichTextIcon

A small image inside the text; instant view only

Fields

  • document :: Maybe Document

    The image represented as a document. The image can be in GIF, JPEG or PNG format

  • width :: Maybe Int

    Width of a bounding box in which the image must be shown; 0 if unknown

  • height :: Maybe Int

    Height of a bounding box in which the image must be shown; 0 if unknown

RichTextMathematicalExpression

A mathematical expression

Fields

RichTextReference

A reference

Fields

RichTextReferenceLink

A link to a reference on the same page

Fields

RichTextAnchor

An anchor

Fields

RichTextAnchorLink

A link to an anchor on the same page

Fields

RichTexts

A concatenation of rich texts

Fields

Instances

Instances details
FromJSON RichText Source # 
Instance details

Defined in TD.Data.RichText

ToJSON RichText Source # 
Instance details

Defined in TD.Data.RichText

Show RichText Source # 
Instance details

Defined in TD.Data.RichText

Eq RichText Source # 
Instance details

Defined in TD.Data.RichText

ShortShow RichText Source # 
Instance details

Defined in TD.Data.RichText