commonMain.com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.TextSource.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of TelegramBotAPI-jvm Show documentation
Show all versions of TelegramBotAPI-jvm Show documentation
Library for Object-Oriented and type-safe work with Telegram Bot API
package com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts
typealias FullTextSourcesList = List
typealias FullTextPartsList = List
interface TextSource {
val asMarkdownSource: String
val asMarkdownV2Source: String
val asHtmlSource: String
val source: String
}
interface MultilevelTextSource : TextSource {
val textParts: List
}
data class TextPart(
val range: IntRange,
val source: TextSource
)
fun List.justTextSources() = map { it.source }