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 {