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/Explained.kt

27 lines
829 B
Kotlin
Raw Normal View History

2020-10-04 11:06:30 +00:00
package dev.inmo.tgbotapi.CommonAbstracts
2021-04-29 05:52:38 +00:00
@Deprecated("Will be removed soon")
interface Explained : Texted {
val explanation: String?
2021-04-29 05:52:38 +00:00
get() = text
}
2021-04-29 05:52:38 +00:00
@Deprecated("Will be removed soon")
interface ParsableExplainedOutput : Explained, TextedOutput
2021-04-29 05:52:38 +00:00
@Deprecated("Will be removed soon")
interface EntitiesExplainedOutput : Explained, EntitiesOutput
2021-04-29 05:52:38 +00:00
@Deprecated("Will be removed soon")
interface ExplainedOutput : ParsableExplainedOutput, EntitiesExplainedOutput
2021-04-29 05:52:38 +00:00
@Deprecated("Will be removed soon")
interface ExplainedInput : Explained {
2021-04-28 13:54:57 +00:00
val textSources: TextSourcesList
2020-05-11 14:32:14 +00:00
/**
2021-01-09 12:25:11 +00:00
* Full list of entities. This list WILL contain [TextPart]s with [dev.inmo.tgbotapi.types.MessageEntity.textsources.RegularTextSource]
2020-05-11 14:32:14 +00:00
*/
val explanationEntities: List<TextPart>
2021-04-28 13:54:57 +00:00
get() = textSources.toTextParts()
}