From adede330fb4cafecf2a404c2d1ab89492b29d15b Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 8 Jan 2024 13:55:41 +0600 Subject: [PATCH] fix of testSources in TextQuote --- .../src/commonMain/kotlin/dev/inmo/tgbotapi/types/TextQuote.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/TextQuote.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/TextQuote.kt index 48745d5816..2d2f639d16 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/TextQuote.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/TextQuote.kt @@ -21,7 +21,7 @@ data class TextQuote private constructor( val isManual: Boolean = false ) : TextedInput { override val textSources: List by lazy { - entities ?.asTextSources(text) ?: emptyList() + (entities ?: emptyList()).asTextSources(text) } companion object {