haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.TextEntityType

Synopsis

Documentation

data TextEntityType Source #

Represents a part of the text which must be formatted differently

Constructors

TextEntityTypeMention

A mention of a user, a supergroup, or a channel by their username

TextEntityTypeHashtag

A hashtag text, beginning with "#"

TextEntityTypeCashtag

A cashtag text, beginning with "$" and consisting of capital English letters (e.g., "$USD")

TextEntityTypeBotCommand

A bot command, beginning with "/"

TextEntityTypeUrl

An HTTP URL

TextEntityTypeEmailAddress

An email address

TextEntityTypePhoneNumber

A phone number

TextEntityTypeBankCardNumber

A bank card number. The getBankCardInfo method can be used to get information about the bank card

TextEntityTypeBold

A bold text

TextEntityTypeItalic

An italic text

TextEntityTypeUnderline

An underlined text

TextEntityTypeStrikethrough

A strikethrough text

TextEntityTypeSpoiler

A spoiler text

TextEntityTypeCode

Text that must be formatted as if inside a code HTML tag

TextEntityTypePre

Text that must be formatted as if inside a pre HTML tag

TextEntityTypePreCode

Text that must be formatted as if inside pre, and code HTML tags

Fields

TextEntityTypeBlockQuote

Text that must be formatted as if inside a blockquote HTML tag; not supported in secret chats

TextEntityTypeExpandableBlockQuote

Text that must be formatted as if inside a blockquote HTML tag and collapsed by default to 3 lines with the ability to show full text; not supported in secret chats

TextEntityTypeTextUrl

A text description shown instead of a raw URL

Fields

  • url :: Maybe Text

    HTTP or tg:// URL to be opened when the link is clicked

TextEntityTypeMentionName

A text shows instead of a raw mention of the user (e.g., when the user has no username)

Fields

TextEntityTypeCustomEmoji

A custom emoji. The text behind a custom emoji must be an emoji. Only premium users can use premium custom emoji

Fields

TextEntityTypeMediaTimestamp

A media timestamp

Fields

  • media_timestamp :: Maybe Int

    Timestamp from which a videoaudiovideo notevoice notestory playing must start, in seconds. The media can be in the content or the link preview of the current message, or in the same places in the replied message