finalize changes

This commit is contained in:
2025-08-11 15:56:20 +06:00
parent 70aca52960
commit e2d56a4d80
2 changed files with 5 additions and 4 deletions

View File

@@ -64,9 +64,10 @@ suspend fun main(args: Array<String>) {
waitAnyContentMessage().filter { message ->
message.sameThread(it.sourceMessage)
}.filter {
it.withContentOrNull<TextContent>() ?.content ?.textSources ?.run {
containsCommand("stop")
} != true
containsCommand(
"stop",
it.withContentOrNull<TextContent>() ?.content ?.textSources ?: return@filter false
) == false
}.first()
}
) ?: return@strictlyOn StopState(it.context)

View File

@@ -6,7 +6,7 @@ kotlin.daemon.jvmargs=-Xmx3g -Xms500m
kotlin_version=2.2.0
telegram_bot_api_version=28.0.0-branch_28.0.0-build2916
telegram_bot_api_version=28.0.0
micro_utils_version=0.26.2
serialization_version=1.9.0
ktor_version=3.2.3