2020-10-04 11:06:30 +00:00
|
|
|
package dev.inmo.tgbotapi.CommonAbstracts
|
|
|
|
|
|
|
|
import dev.inmo.tgbotapi.types.ParseMode.ParseMode
|
|
|
|
|
|
|
|
interface Captioned {
|
|
|
|
val caption: String?
|
|
|
|
}
|
|
|
|
|
2021-03-24 07:41:37 +00:00
|
|
|
@Deprecated("This interface is not used in library and will be removed soon")
|
2020-10-04 11:06:30 +00:00
|
|
|
interface CaptionedOutput : Captioned {
|
|
|
|
val parseMode: ParseMode?
|
|
|
|
}
|
|
|
|
|
|
|
|
interface CaptionedInput : Captioned {
|
|
|
|
/**
|
2021-01-09 14:52:21 +00:00
|
|
|
* Full list of entities. This list WILL contain [TextPart]s with [dev.inmo.tgbotapi.types.MessageEntity.textsources.RegularTextSource]
|
2020-10-04 11:06:30 +00:00
|
|
|
*/
|
|
|
|
val captionEntities: List<TextPart>
|
|
|
|
}
|
|
|
|
|
2020-11-06 13:13:59 +00:00
|
|
|
/**
|
|
|
|
* @see CaptionedInput.captionEntities
|
|
|
|
* @see justTextSources
|
|
|
|
*/
|
|
|
|
val CaptionedInput.textSources
|
|
|
|
get() = captionEntities.justTextSources()
|