MessageEntityType enum
Type of the entity. Currently, can be: one of
- mention - (@username)
- hashtag - (#hashtag),
- cashtag - ($USD),
- botCommand - (/start@jobs_bot),
- url - (https://telegram.org),
- email - (do-not-reply@telegram.org),
- phoneNumber - (+1-212-555-0123),
- bold - (bold text),
- italic - (italic text),
- underline - (underlined text),
- strikethrough - (strikethrough text),
- spoiler - (spoiler message),
- code - (monowidth string),
- pre - (monowidth block),
- textLink - (for clickable text URLs),
- textMention - (for users without usernames),
- customEmoji - (for inline custom emoji stickers)
Values
- mention → const MessageEntityType
-
Mention - (@username)
const MessageEntityType("mention")
- hashtag → const MessageEntityType
-
Hashtag - (#hashtag),
const MessageEntityType("hashtag")
- cashtag → const MessageEntityType
-
Cashtag - ($USD),
const MessageEntityType("cashtag")
- botCommand → const MessageEntityType
-
Bot command - (/start@jobs_bot),
const MessageEntityType("bot_command")
- url → const MessageEntityType
-
URL - https://telegram.org
const MessageEntityType("url")
- email → const MessageEntityType
-
Email - do-not-reply@telegram.org
const MessageEntityType("email")
- phoneNumber → const MessageEntityType
-
Phone number - +1-212-555-0123
const MessageEntityType("phone_number")
- bold → const MessageEntityType
-
Bold text - bold text
const MessageEntityType("bold")
- italic → const MessageEntityType
-
Italic text - italic text
const MessageEntityType("italic")
- underline → const MessageEntityType
-
Underlined text - underlined text
const MessageEntityType("underline")
- strikethrough → const MessageEntityType
-
Strikethrough text - ~strikethrough~ text
const MessageEntityType("strikethrough")
- spoiler → const MessageEntityType
-
Spoiler message - ||spoiler||
const MessageEntityType("spoiler")
- code → const MessageEntityType
-
Monowidth string -
monowidth string
const MessageEntityType("code")
- pre → const MessageEntityType
-
Monowidth block -
monowidth block
const MessageEntityType("pre")
- textLink → const MessageEntityType
-
For clickable text URLs
const MessageEntityType("text_link")
- textMention → const MessageEntityType
-
For users without usernames
const MessageEntityType("text_mention")
- customEmoji → const MessageEntityType
-
For inline custom emoji stickers
const MessageEntityType("custom_emoji")
- blockquote → const MessageEntityType
-
Block quotation
const MessageEntityType("blockquote")
- expandableBlockquote → const MessageEntityType
-
Expandable Block Quote
const MessageEntityType("expandable_blockquote")
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The value of this enum.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
MessageEntityType> - A constant List of the values in this enum, in order of their declaration.