TextEntityType
public indirect enum TextEntityType : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Represents a part of the text which must be formatted differently
-
A mention of a user by their username
Declaration
Swift
case mention -
A hashtag text, beginning with “#”
Declaration
Swift
case hashtag -
A cashtag text, beginning with “$” and consisting of capital english letters (i.e. “$USD”)
Declaration
Swift
case cashtag -
A bot command, beginning with “/”. This shouldn’t be highlighted if there are no bots in the chat
Declaration
Swift
case botCommand -
An HTTP URL
Declaration
Swift
case url -
An email address
Declaration
Swift
case emailAddress -
A phone number
Declaration
Swift
case phoneNumber -
A bold text
Declaration
Swift
case bold -
An italic text
Declaration
Swift
case italic -
An underlined text
Declaration
Swift
case underline -
A strikethrough text
Declaration
Swift
case strikethrough -
Text that must be formatted as if inside a code HTML tag
Declaration
Swift
case code -
Text that must be formatted as if inside a pre HTML tag
Declaration
Swift
case pre -
Text that must be formatted as if inside pre, and code HTML tags
- language: Programming language of the code; as defined by the sender
Declaration
Swift
case preCode(language: String) -
A text description shown instead of a raw URL
- url: HTTP or tg:// URL to be opened when the link is clicked
Declaration
Swift
case textUrl(url: String) -
A text shows instead of a raw mention of the user (e.g., when the user has no username)
- userId: Identifier of the mentioned user
Declaration
Swift
case mentionName(userId: Int32)
View on GitHub
Install in Dash
TextEntityType Enumeration Reference