MessageEntityType enum

Type of the entity. Currently, can be: one of

Inheritance

Constructors

MessageEntityType(String type)
Constructs a new MessageEntityType.
const
MessageEntityType.fromJson(String type)
Constructs a MessageEntityType from a type.
factory

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")

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
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.