2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity
|
|
|
|
|
2019-12-11 08:06:09 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.TextSource
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity.textsources.BotCommandTextSource
|
2019-03-31 03:54:49 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.commandHTML
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.commandMarkdown
|
2019-03-31 03:26:41 +00:00
|
|
|
|
2018-12-26 08:07:24 +00:00
|
|
|
data class BotCommandMessageEntity(
|
|
|
|
override val offset: Int,
|
|
|
|
override val length: Int,
|
2019-12-11 08:06:09 +00:00
|
|
|
override val sourceString: String,
|
|
|
|
private val botCommandTextSource: BotCommandTextSource = BotCommandTextSource(sourceString)
|
|
|
|
) : MessageEntity, TextSource by botCommandTextSource {
|
|
|
|
val command: String
|
|
|
|
get() = botCommandTextSource.command
|
2018-12-26 08:07:24 +00:00
|
|
|
}
|