17 lines
751 B
Kotlin
17 lines
751 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.TextSource
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity.textsources.BotCommandTextSource
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.commandHTML
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.commandMarkdown
|
|
|
|
data class BotCommandMessageEntity(
|
|
override val offset: Int,
|
|
override val length: Int,
|
|
override val sourceString: String,
|
|
private val botCommandTextSource: BotCommandTextSource = BotCommandTextSource(sourceString)
|
|
) : MessageEntity, TextSource by botCommandTextSource {
|
|
val command: String
|
|
get() = botCommandTextSource.command
|
|
}
|