mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
12 lines
338 B
Kotlin
12 lines
338 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity
|
||
|
|
||
|
data class BotCommandMessageEntity(
|
||
|
override val offset: Int,
|
||
|
override val length: Int,
|
||
|
override val sourceString: String
|
||
|
) : MessageEntity {
|
||
|
val command: String by lazy {
|
||
|
sourceString.substring(1)// skip first symbol like "/" or "!"
|
||
|
}
|
||
|
}
|