diff --git a/CHANGELOG.md b/CHANGELOG.md index db55b8a298..1473b49eae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # TelegramBotAPI changelog +## 0.34.1 + +* `Common`: + * `Version`: + * `ktor`: `1.5.3` -> `1.5.4` + * `MicroUtils`: `0.4.35` -> `0.4.36` +* `Core` + * Fix in creating of text sources list + ## 0.34.0 **UPDATE UP TO Telegram Bot API 5.2** diff --git a/gradle.properties b/gradle.properties index 5e93b2b6b2..b666444203 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,13 +10,13 @@ kotlin_coroutines_version=1.4.3 kotlin_serialisation_runtime_version=1.1.0 klock_version=2.0.7 uuid_version=0.2.4 -ktor_version=1.5.3 +ktor_version=1.5.4 -micro_utils_version=0.4.35 +micro_utils_version=0.4.36 javax_activation_version=1.1.1 library_group=dev.inmo -library_version=0.34.0 +library_version=0.34.1 github_release_plugin_version=2.2.12 diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/MessageEntity/RawMessageEntity.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/MessageEntity/RawMessageEntity.kt index 4234bdd191..c294fcbafb 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/MessageEntity/RawMessageEntity.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/MessageEntity/RawMessageEntity.kt @@ -59,7 +59,7 @@ internal fun List.fillWithRegulars(source: String): List val textSource = get(i) val thisSourceInStart = source.startsWith(textSource.source, index) if (!thisSourceInStart) { - val regularEndIndex = source.indexOf(textSource.source) + val regularEndIndex = source.indexOf(textSource.source, index) result.add(regular(source.substring(index, regularEndIndex))) index = regularEndIndex }