From c870a48a2288133590d3c41d1dfbe50e0cf42da0 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 May 2022 22:35:45 +0600 Subject: [PATCH 1/8] start 2.0.1 --- CHANGELOG.md | 2 ++ gradle.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c3766c58e..9b0562004d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # TelegramBotAPI changelog +## 2.0.1 + ## 2.0.0 ___ALL PREVIOUS DEPRECATIONS HAVE BEEN REMOVED___ diff --git a/gradle.properties b/gradle.properties index 5ab121910a..7f04e42ebd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -20,6 +20,6 @@ javax_activation_version=1.1.1 dokka_version=1.6.21 library_group=dev.inmo -library_version=2.0.0 +library_version=2.0.1 github_release_plugin_version=2.3.7 From ad7fdc6211a7f390bf46173d66d19266edae7146 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 22 May 2022 22:36:56 +0600 Subject: [PATCH 2/8] improvements in longPolling extension --- CHANGELOG.md | 3 +++ .../extensions/utils/updates/retrieving/LongPolling.kt | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b0562004d..b15ed59d41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 2.0.1 +* `Utils`: + * `TelegramBot#longPolling` now accepts `UpdatesFilter` instead of `FlowsUpdatesFilter` + ## 2.0.0 ___ALL PREVIOUS DEPRECATIONS HAVE BEEN REMOVED___ diff --git a/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/updates/retrieving/LongPolling.kt b/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/updates/retrieving/LongPolling.kt index b0c8550231..421427e2ac 100644 --- a/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/updates/retrieving/LongPolling.kt +++ b/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/updates/retrieving/LongPolling.kt @@ -166,11 +166,11 @@ suspend fun TelegramBot.flushAccumulatedUpdates( * all updates receivers, because this method will trigger getting of updates and. */ fun TelegramBot.longPolling( - flowsUpdatesFilter: FlowsUpdatesFilter, + updatesFilter: UpdatesFilter, timeoutSeconds: Seconds = 30, scope: CoroutineScope = CoroutineScope(Dispatchers.Default), exceptionsHandler: ExceptionHandler? = null -): Job = flowsUpdatesFilter.run { +): Job = updatesFilter.run { startGettingOfUpdatesByLongPolling(timeoutSeconds, scope, exceptionsHandler, allowedUpdates, asUpdateReceiver) } From a13371e14cfa6c3441bf7a5def31a224092352ec Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 28 May 2022 09:55:10 +0600 Subject: [PATCH 3/8] Update gradle.properties --- gradle.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 7f04e42ebd..c350c580b6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,9 +10,9 @@ kotlin_coroutines_version=1.6.1 kotlin_serialisation_runtime_version=1.3.3 korlibs_version=2.7.0 uuid_version=0.4.0 -ktor_version=2.0.1 +ktor_version=2.0.2 -micro_utils_version=0.10.5 +micro_utils_version=0.10.6 javax_activation_version=1.1.1 From 88339a497784b47b52180211f63f432b8f1115fe Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 28 May 2022 09:56:40 +0600 Subject: [PATCH 4/8] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b15ed59d41..8cee1485ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 2.0.1 +* `Versions`: + * `Ktor`: `2.0.1` -> `2.0.2` + * `MicroUtils`: `0.10.5` -> `0.10.6` * `Utils`: * `TelegramBot#longPolling` now accepts `UpdatesFilter` instead of `FlowsUpdatesFilter` From 551276f78ef624f6f4f7b824f5952400c59bcdb8 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 29 May 2022 09:02:52 +0600 Subject: [PATCH 5/8] Update gradle.properties --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index c350c580b6..f931f3ec1b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ korlibs_version=2.7.0 uuid_version=0.4.0 ktor_version=2.0.2 -micro_utils_version=0.10.6 +micro_utils_version=0.10.7 javax_activation_version=1.1.1 From cb708a1ba4b4f14ba8e74a8b42018f8784b8ac39 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 29 May 2022 09:03:18 +0600 Subject: [PATCH 6/8] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cee1485ba..71a4456677 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ * `Versions`: * `Ktor`: `2.0.1` -> `2.0.2` - * `MicroUtils`: `0.10.5` -> `0.10.6` + * `MicroUtils`: `0.10.5` -> `0.10.7` * `Utils`: * `TelegramBot#longPolling` now accepts `UpdatesFilter` instead of `FlowsUpdatesFilter` From 757e317e70c851bf47ac056ba1381ef01245ec96 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 29 May 2022 22:15:56 +0600 Subject: [PATCH 7/8] Update gradle.properties --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index f931f3ec1b..829a9e9096 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ korlibs_version=2.7.0 uuid_version=0.4.0 ktor_version=2.0.2 -micro_utils_version=0.10.7 +micro_utils_version=0.10.8 javax_activation_version=1.1.1 From db36c6aacbdb8c7058be6c5083d46857ef155749 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 29 May 2022 22:16:55 +0600 Subject: [PATCH 8/8] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71a4456677..2d81c3aa89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ * `Versions`: * `Ktor`: `2.0.1` -> `2.0.2` - * `MicroUtils`: `0.10.5` -> `0.10.7` + * `MicroUtils`: `0.10.5` -> `0.10.8` * `Utils`: * `TelegramBot#longPolling` now accepts `UpdatesFilter` instead of `FlowsUpdatesFilter`