diff --git a/FSMBot/src/main/kotlin/SimpleFSMBot.kt b/FSMBot/src/main/kotlin/SimpleFSMBot.kt index ed915f4..36dd2a0 100644 --- a/FSMBot/src/main/kotlin/SimpleFSMBot.kt +++ b/FSMBot/src/main/kotlin/SimpleFSMBot.kt @@ -1,3 +1,4 @@ +import dev.inmo.micro_utils.coroutines.AccumulatorFlow import dev.inmo.micro_utils.fsm.common.State import dev.inmo.tgbotapi.extensions.api.send.sendMessage import dev.inmo.tgbotapi.extensions.behaviour_builder.* diff --git a/ForwardInfoSenderBot/src/main/kotlin/ForwardInfoSenderBot.kt b/ForwardInfoSenderBot/src/main/kotlin/ForwardInfoSenderBot.kt index 2feaddb..e8ddd0a 100644 --- a/ForwardInfoSenderBot/src/main/kotlin/ForwardInfoSenderBot.kt +++ b/ForwardInfoSenderBot/src/main/kotlin/ForwardInfoSenderBot.kt @@ -36,8 +36,6 @@ suspend fun main(vararg args: String) { } } reply(it, toAnswer) - currentCoroutineContext().job.invokeOnCompletion { println("completance of onContentMessage") } } - currentCoroutineContext().job.invokeOnCompletion { println("Completed :)") } }.second.join() } diff --git a/gradle.properties b/gradle.properties index 01422ea..72835e2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,5 +4,5 @@ org.gradle.parallel=true kotlin_version=1.6.21 telegram_bot_api_version=1.0.0 -micro_utils_version=0.10.2 +micro_utils_version=0.10.3 ktor_version=2.0.1