From 222134836a3e03e492b43b40f6075ca24d6a318a Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 17 Apr 2022 00:26:04 +0600 Subject: [PATCH] update up to 0.38.13 --- FSMBot/src/main/kotlin/SimpleFSMBot.kt | 4 +++- gradle.properties | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/FSMBot/src/main/kotlin/SimpleFSMBot.kt b/FSMBot/src/main/kotlin/SimpleFSMBot.kt index bc84902..ed915f4 100644 --- a/FSMBot/src/main/kotlin/SimpleFSMBot.kt +++ b/FSMBot/src/main/kotlin/SimpleFSMBot.kt @@ -26,7 +26,9 @@ suspend fun main(args: Array) { } ) - val content = waitContentMessage().first() + val contentMessage = waitContentMessage().first() + val content = contentMessage.content + when { content is TextContent && content.parseCommandsWithParams().keys.contains("stop") -> StopState(it.context) else -> { diff --git a/gradle.properties b/gradle.properties index 0903981..a6963de 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,5 +3,5 @@ org.gradle.parallel=true kotlin_version=1.6.10 -telegram_bot_api_version=0.38.12 -micro_utils_version=0.9.19 +telegram_bot_api_version=0.38.13 +micro_utils_version=0.9.20