1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-03 00:15:27 +00:00
tgbotapi/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/CommonAbstracts/Texted.kt

30 lines
674 B
Kotlin
Raw Normal View History

package dev.inmo.tgbotapi.CommonAbstracts
2022-05-01 14:36:07 +00:00
import dev.inmo.tgbotapi.types.message.textsources.TextSource
2022-05-01 14:43:03 +00:00
import dev.inmo.tgbotapi.types.message.ParseMode
interface Texted {
val text: String?
}
2021-04-29 05:52:38 +00:00
interface TextedWithTextSources : Texted {
/**
2021-05-29 09:34:14 +00:00
* Full list of [TextSource]s
2021-04-29 05:52:38 +00:00
*/
2021-05-29 09:34:14 +00:00
val textSources: List<TextSource>?
2021-04-29 05:52:38 +00:00
}
interface ParsableOutput : Texted {
val parseMode: ParseMode?
}
2021-04-29 05:52:38 +00:00
interface EntitiesOutput : TextedWithTextSources {
2021-05-29 09:34:14 +00:00
val entities: List<TextSource>?
2021-04-29 05:52:38 +00:00
get() = textSources
}
interface TextedOutput : ParsableOutput, EntitiesOutput
2021-04-29 05:52:38 +00:00
interface TextedInput : TextedWithTextSources {
override val textSources: List<TextSource>
}