1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

fix of testSources in TextQuote

This commit is contained in:
InsanusMokrassar 2024-01-08 13:55:41 +06:00
parent f2f370e40e
commit adede330fb

View File

@ -21,7 +21,7 @@ data class TextQuote private constructor(
val isManual: Boolean = false
) : TextedInput {
override val textSources: List<TextSource> by lazy {
entities ?.asTextSources(text) ?: emptyList()
(entities ?: emptyList()).asTextSources(text)
}
companion object {