mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
14 lines
414 B
Kotlin
14 lines
414 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.User
|
|
|
|
class TextMentionMessageEntity(
|
|
override val offset: Int,
|
|
override val length: Int,
|
|
override val sourceString: String,
|
|
val user: User
|
|
) : MessageEntity {
|
|
override val asMarkdownSource: String by lazy {
|
|
"[$sourceString](tg://user?id=${user.id})"
|
|
}
|
|
} |