MessageEntity class

This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.

https://core.telegram.org/bots/api#messageentity

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

MessageEntity({required String type, required int offset, required int length, String? url, User? user, String? language, String? customEmojiId})
MessageEntity.fromJson(Map<String, dynamic> json)
factory

Properties

customEmojiId String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
language String?
getter/setter pair
length int
getter/setter pair
offset int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
getter/setter pair
url String?
getter/setter pair
user User?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

typeBold → const String
typeBotCommand → const String
typeCashtag → const String
typeCode → const String
typeCustomEmoji → const String
typeEmail → const String
typeHashtag → const String
typeItalic → const String
typeMention → const String
typePhoneNmber → const String
typePre → const String
typeSpolier → const String
typeStrikethrough → const String
typeTextMention → const String
typeUnderline → const String
typeUrl → const String