MessageEntityType enum

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

Inheritance
Available extensions
Annotations
  • @JsonEnum(fieldRename: FieldRename.snake)

Values

mention → const MessageEntityType

Mention - (@username)

hashtag → const MessageEntityType

Hashtag - (#hashtag)

cashtag → const MessageEntityType

Cashtag - ($USD)

botCommand → const MessageEntityType

Bot command - (/start@jobs_bot)

url → const MessageEntityType

URL - https://telegram.org

email → const MessageEntityType

Email - do-not-reply@telegram.org

phoneNumber → const MessageEntityType

Phone number - +1-212-555-0123

bold → const MessageEntityType

Bold text - bold text

italic → const MessageEntityType

Italic text - italic text

underline → const MessageEntityType

Underlined text - underlined text

strikethrough → const MessageEntityType

Strikethrough text - strikethrough text

spoiler → const MessageEntityType

Spoiler message - ||spoiler||

code → const MessageEntityType

Monowidth string - monowidth string

pre → const MessageEntityType

Monowidth block - monowidth block

For clickable text URLs

textMention → const MessageEntityType

For users without usernames

customEmoji → const MessageEntityType

For inline custom emoji stickers

blockquote → const MessageEntityType

Block quotation

expandableBlockquote → const MessageEntityType

Expandable Block Quote

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

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.