1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-08 01:29:30 +00:00

rework in part of text message entities

This commit is contained in:
2020-01-05 19:24:17 +06:00
parent 398adf06ff
commit 72127ce133
53 changed files with 760 additions and 540 deletions

View File

@@ -1,7 +1,17 @@
package com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts
interface TextSource {
val rawSource: String
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
)