2020-10-04 11:06:30 +00:00
|
|
|
package dev.inmo.tgbotapi.CommonAbstracts
|
2020-04-25 03:41:04 +00:00
|
|
|
|
2021-04-29 05:52:38 +00:00
|
|
|
@Deprecated("Will be removed soon")
|
|
|
|
interface Explained : Texted {
|
2020-04-25 03:41:04 +00:00
|
|
|
val explanation: String?
|
2021-04-29 05:52:38 +00:00
|
|
|
get() = text
|
2020-04-25 03:41:04 +00:00
|
|
|
}
|
|
|
|
|
2021-04-29 05:52:38 +00:00
|
|
|
@Deprecated("Will be removed soon")
|
|
|
|
interface ParsableExplainedOutput : Explained, TextedOutput
|
2020-04-25 03:41:04 +00:00
|
|
|
|
2021-04-29 05:52:38 +00:00
|
|
|
@Deprecated("Will be removed soon")
|
|
|
|
interface EntitiesExplainedOutput : Explained, EntitiesOutput
|
2020-11-05 10:53:26 +00:00
|
|
|
|
2021-04-29 05:52:38 +00:00
|
|
|
@Deprecated("Will be removed soon")
|
2020-11-05 10:53:26 +00:00
|
|
|
interface ExplainedOutput : ParsableExplainedOutput, EntitiesExplainedOutput
|
|
|
|
|
2021-04-29 05:52:38 +00:00
|
|
|
@Deprecated("Will be removed soon")
|
2020-04-25 03:41:04 +00:00
|
|
|
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
|
|
|
*/
|
2020-04-25 03:41:04 +00:00
|
|
|
val explanationEntities: List<TextPart>
|
2021-04-28 13:54:57 +00:00
|
|
|
get() = textSources.toTextParts()
|
2020-04-25 03:41:04 +00:00
|
|
|
}
|