From f6a0b1a19db05b8802bf1fe72b73212954a97484 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 17 Nov 2022 12:30:26 +0600 Subject: [PATCH 1/3] start 4.1.2 --- CHANGELOG.md | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa0123b088..cfe65e6ffe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # TelegramBotAPI changelog +## 4.1.2 + ## 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 From ceba86abcb704cb0db226de5251b7594b4076304 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 17 Nov 2022 12:33:16 +0600 Subject: [PATCH 2/3] Fixes in CallbackQuery waiters --- CHANGELOG.md | 3 +++ .../behaviour_builder/expectations/WaitCallbackQuery.kt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfe65e6ffe..c2b55c4444 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 4.1.2 +* `BehaviourBuilder`: + * Fixes in `CallbackQuery` waiters + ## 4.1.1 * `Core`: 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) } From 13dd73dd63d2f3f997324301db6af3f62abf4daf Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 17 Nov 2022 12:34:33 +0600 Subject: [PATCH 3/3] update dependencies --- CHANGELOG.md | 2 ++ gradle/libs.versions.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2b55c4444..bdca437db9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 4.1.2 +* `Versions`: + * `MicroUtils`: `0.14.1` -> `0.14.2` * `BehaviourBuilder`: * Fixes in `CallbackQuery` waiters 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"