1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-14 21:00:15 +00:00

fix of testSources in TextQuote

This commit is contained in:
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 {