mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
30 lines
668 B
Kotlin
30 lines
668 B
Kotlin
|
package dev.inmo.tgbotapi.abstracts
|
||
|
|
||
|
import dev.inmo.tgbotapi.types.message.textsources.TextSource
|
||
|
import dev.inmo.tgbotapi.types.message.ParseMode
|
||
|
|
||
|
interface Texted {
|
||
|
val text: String?
|
||
|
}
|
||
|
interface TextedWithTextSources : Texted {
|
||
|
/**
|
||
|
* Full list of [TextSource]s
|
||
|
*/
|
||
|
val textSources: List<TextSource>?
|
||
|
}
|
||
|
|
||
|
interface ParsableOutput : Texted {
|
||
|
val parseMode: ParseMode?
|
||
|
}
|
||
|
|
||
|
interface EntitiesOutput : TextedWithTextSources {
|
||
|
val entities: List<TextSource>?
|
||
|
get() = textSources
|
||
|
}
|
||
|
|
||
|
interface TextedOutput : ParsableOutput, EntitiesOutput
|
||
|
|
||
|
interface TextedInput : TextedWithTextSources {
|
||
|
override val textSources: List<TextSource>
|
||
|
}
|