Constructors
 Properties
Optional Readonly_text
_text?: string
Readonlyraw
 Accessors
kind
- get kind(): | "url"
 | "bold"
 | "email"
 | "code"
 | "spoiler"
 | "emoji"
 | "hashtag"
 | "mention"
 | "cashtag"
 | "bot_command"
 | "phone_number"
 | "italic"
 | "underline"
 | "strikethrough"
 | "bank_card"
 | "unknown"
 | "blockquote"
 | "pre"
 | "text_link"
 | "text_mention"
- Returns 
 | "url"
 | "bold"
 | "email"
 | "code"
 | "spoiler"
 | "emoji"
 | "hashtag"
 | "mention"
 | "cashtag"
 | "bot_command"
 | "phone_number"
 | "italic"
 | "underline"
 | "strikethrough"
 | "bank_card"
 | "unknown"
 | "blockquote"
 | "pre"
 | "text_link"
 | "text_mention"
length
- get length(): number
- Returns number
offset
- get offset(): number
- Returns number
params
- get params(): MessageEntityParams
text
- get text(): string
- Returns string
 Methods
is
- is<
 const T extends
 | "url"
 | "bold"
 | "email"
 | "code"
 | "spoiler"
 | "emoji"
 | "hashtag"
 | "mention"
 | "cashtag"
 | "bot_command"
 | "phone_number"
 | "italic"
 | "underline"
 | "strikethrough"
 | "bank_card"
 | "unknown"
 | "blockquote"
 | "pre"
 | "text_link"
 | "text_mention",
 >(
 kind: T,
 ): this is MessageEntity & {
 kind: T;
 params:
 | Extract<
 {
 kind: | "url"
 | "bold"
 | "email"
 | "code"
 | "spoiler"
 | "hashtag"
 | "mention"
 | "cashtag"
 | "bot_command"
 | "phone_number"
 | "italic"
 | "underline"
 | "strikethrough"
 | "bank_card"
 | "unknown";
 },
 { kind: T },
 >
 | Extract<{ collapsible: boolean; kind: "blockquote" }, { kind: T }>
 | Extract<{ kind: "pre"; language?: string }, { kind: T }>
 | Extract<{ kind: "text_link"; url: string }, { kind: T }>
 | Extract<{ kind: "text_mention"; userId: number }, { kind: T }>
 | Extract<{ emojiId: Long; kind: "emoji" }, { kind: T }>;
 }
- Type Parameters- const T extends 
 | "url"
 | "bold"
 | "email"
 | "code"
 | "spoiler"
 | "emoji"
 | "hashtag"
 | "mention"
 | "cashtag"
 | "bot_command"
 | "phone_number"
 | "italic"
 | "underline"
 | "strikethrough"
 | "bank_card"
 | "unknown"
 | "blockquote"
 | "pre"
 | "text_link"
 | "text_mention"
 - Returns this is MessageEntity & {
 kind: T;
 params:
 | Extract<
 {
 kind: | "url"
 | "bold"
 | "email"
 | "code"
 | "spoiler"
 | "hashtag"
 | "mention"
 | "cashtag"
 | "bot_command"
 | "phone_number"
 | "italic"
 | "underline"
 | "strikethrough"
 | "bank_card"
 | "unknown";
 },
 { kind: T },
 >
 | Extract<{ collapsible: boolean; kind: "blockquote" }, { kind: T }>
 | Extract<{ kind: "pre"; language?: string }, { kind: T }>
 | Extract<{ kind: "text_link"; url: string }, { kind: T }>
 | Extract<{ kind: "text_mention"; userId: number }, { kind: T }>
 | Extract<{ emojiId: Long; kind: "emoji" }, { kind: T }>;
 }
One special entity in a text message (like mention, hashtag, URL, etc.)