mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
18 lines
350 B
Kotlin
18 lines
350 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts
|
|
|
|
interface TextSource {
|
|
val asMarkdownSource: String
|
|
val asMarkdownV2Source: String
|
|
val asHtmlSource: String
|
|
}
|
|
|
|
|
|
interface MultilevelTextSource : TextSource {
|
|
val textParts: List<TextPart>
|
|
}
|
|
|
|
data class TextPart(
|
|
val range: IntRange,
|
|
val source: TextSource
|
|
)
|