mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2025-10-28 02:30:09 +00:00
finalize changes
This commit is contained in:
@@ -64,9 +64,10 @@ suspend fun main(args: Array<String>) {
|
|||||||
waitAnyContentMessage().filter { message ->
|
waitAnyContentMessage().filter { message ->
|
||||||
message.sameThread(it.sourceMessage)
|
message.sameThread(it.sourceMessage)
|
||||||
}.filter {
|
}.filter {
|
||||||
it.withContentOrNull<TextContent>() ?.content ?.textSources ?.run {
|
containsCommand(
|
||||||
containsCommand("stop")
|
"stop",
|
||||||
} != true
|
it.withContentOrNull<TextContent>() ?.content ?.textSources ?: return@filter false
|
||||||
|
) == false
|
||||||
}.first()
|
}.first()
|
||||||
}
|
}
|
||||||
) ?: return@strictlyOn StopState(it.context)
|
) ?: return@strictlyOn StopState(it.context)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ kotlin.daemon.jvmargs=-Xmx3g -Xms500m
|
|||||||
|
|
||||||
|
|
||||||
kotlin_version=2.2.0
|
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
|
micro_utils_version=0.26.2
|
||||||
serialization_version=1.9.0
|
serialization_version=1.9.0
|
||||||
ktor_version=3.2.3
|
ktor_version=3.2.3
|
||||||
|
|||||||
Reference in New Issue
Block a user