MessageEntity

data class MessageEntity(type: String, offset: Long, length: Long, url: String?, user: User?, language: String?) : TelegramModel

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

Constructors

MessageEntity
Link copied to clipboard
fun MessageEntity(type: String, offset: Long, length: Long, url: String? = null, user: User? = null, language: String? = null)
Creates a MessageEntity.

Properties

language
Link copied to clipboard
val language: String? = null
Optional.
length
Link copied to clipboard
val length: Long
Length of the entity in UTF-16 code units
offset
Link copied to clipboard
val offset: Long
Offset in UTF-16 code units to the start of the entity
type
Link copied to clipboard
val type: String
Type of the entity.
url
Link copied to clipboard
val url: String? = null
Optional.
user
Link copied to clipboard
val user: User? = null
Optional.