mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-12-29 17:39:22 +00:00
fix of testSources in TextQuote
This commit is contained in:
@@ -21,7 +21,7 @@ data class TextQuote private constructor(
|
|||||||
val isManual: Boolean = false
|
val isManual: Boolean = false
|
||||||
) : TextedInput {
|
) : TextedInput {
|
||||||
override val textSources: List<TextSource> by lazy {
|
override val textSources: List<TextSource> by lazy {
|
||||||
entities ?.asTextSources(text) ?: emptyList()
|
(entities ?: emptyList()).asTextSources(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|||||||
Reference in New Issue
Block a user