Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data TextEntityType
- = TextEntityTypeMention
- | TextEntityTypeHashtag
- | TextEntityTypeCashtag
- | TextEntityTypeBotCommand
- | TextEntityTypeUrl
- | TextEntityTypeEmailAddress
- | TextEntityTypePhoneNumber
- | TextEntityTypeBankCardNumber
- | TextEntityTypeBold
- | TextEntityTypeItalic
- | TextEntityTypeUnderline
- | TextEntityTypeStrikethrough
- | TextEntityTypeSpoiler
- | TextEntityTypeCode
- | TextEntityTypePre
- | TextEntityTypePreCode { }
- | TextEntityTypeBlockQuote
- | TextEntityTypeExpandableBlockQuote
- | TextEntityTypeTextUrl { }
- | TextEntityTypeMentionName { }
- | TextEntityTypeCustomEmoji { }
- | TextEntityTypeMediaTimestamp { }
Documentation
data TextEntityType Source #
Represents a part of the text which must be formatted differently
TextEntityTypeMention | A mention of a user, a supergroup, or a channel by their username |
TextEntityTypeHashtag | A hashtag text, beginning with "#" and optionally containing a chat username at the end |
TextEntityTypeCashtag | A cashtag text, beginning with "$", consisting of capital English letters (e.g., "$USD"), and optionally containing a chat username at the end |
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 |
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 |
TextEntityTypeMentionName | A text shows instead of a raw mention of the user (e.g., when the user has no username) |
TextEntityTypeCustomEmoji | A custom emoji. The text behind a custom emoji must be an emoji. Only premium users can use premium custom emoji |
| |
TextEntityTypeMediaTimestamp | A media timestamp |
|
Instances
FromJSON TextEntityType Source # | |
Defined in TD.Data.TextEntityType parseJSON :: Value -> Parser TextEntityType # parseJSONList :: Value -> Parser [TextEntityType] # | |
ToJSON TextEntityType Source # | |
Defined in TD.Data.TextEntityType toJSON :: TextEntityType -> Value # toEncoding :: TextEntityType -> Encoding # toJSONList :: [TextEntityType] -> Value # toEncodingList :: [TextEntityType] -> Encoding # | |
Show TextEntityType Source # | |
Defined in TD.Data.TextEntityType showsPrec :: Int -> TextEntityType -> ShowS # show :: TextEntityType -> String # showList :: [TextEntityType] -> ShowS # | |
Eq TextEntityType Source # | |
Defined in TD.Data.TextEntityType (==) :: TextEntityType -> TextEntityType -> Bool # (/=) :: TextEntityType -> TextEntityType -> Bool # | |
ShortShow TextEntityType Source # | |
Defined in TD.Data.TextEntityType shortShow :: TextEntityType -> String Source # |