diff --git a/CHANGELOG.md b/CHANGELOG.md index aa0123b088..bdca437db9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # TelegramBotAPI changelog +## 4.1.2 + +* `Versions`: + * `MicroUtils`: `0.14.1` -> `0.14.2` +* `BehaviourBuilder`: + * Fixes in `CallbackQuery` waiters + ## 4.1.1 * `Core`: diff --git a/gradle.properties b/gradle.properties index 8c6bfddbee..4a82cfd28a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,4 +6,4 @@ kotlin.incremental=true kotlin.incremental.js=true library_group=dev.inmo -library_version=4.1.1 +library_version=4.1.2 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9695d5821a..da0f7dfac8 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -13,7 +13,7 @@ ktor = "2.1.3" ksp = "1.7.21-1.0.8" kotlin-poet = "1.12.0" -microutils = "0.14.1" +microutils = "0.14.2" github-release-plugin = "2.4.1" dokka = "1.7.20" diff --git a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitCallbackQuery.kt b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitCallbackQuery.kt index 7be3ea5ee1..492ed205e5 100644 --- a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitCallbackQuery.kt +++ b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitCallbackQuery.kt @@ -20,7 +20,7 @@ suspend inline fun BehaviourContext.waitCallbackQueries( initRequest, errorFactory ) { - (it.callbackQueryUpdateOrNull() ?.data as O).let(::listOfNotNull) + (it.callbackQueryUpdateOrNull() ?.data as? O).let(::listOfNotNull) }