2020-11-05 10:53:26 +00:00
|
|
|
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
|
2020-11-05 10:53:26 +00:00
|
|
|
|
|
|
|
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
|
|
|
}
|
2020-11-05 10:53:26 +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
|
2020-11-05 10:53:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface TextedOutput : ParsableOutput, EntitiesOutput
|
|
|
|
|
2021-04-29 05:52:38 +00:00
|
|
|
interface TextedInput : TextedWithTextSources {
|
|
|
|
override val textSources: List<TextSource>
|
2020-11-05 10:53:26 +00:00
|
|
|
}
|