File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,9 +64,10 @@ suspend fun main(args: Array<String>) {
6464 waitAnyContentMessage().filter { message ->
6565 message.sameThread(it.sourceMessage)
6666 }.filter {
67- it.withContentOrNull<TextContent >() ?.content ?.textSources ?.run {
68- containsCommand(" stop" )
69- } != true
67+ containsCommand(
68+ " stop" ,
69+ it.withContentOrNull<TextContent >() ?.content ?.textSources ? : return @filter false
70+ ) == false
7071 }.first()
7172 }
7273 ) ? : return @strictlyOn StopState (it.context)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ kotlin.daemon.jvmargs=-Xmx3g -Xms500m
66
77
88kotlin_version =2.2.0
9- telegram_bot_api_version =28.0.0-branch_28.0.0-build2916
9+ telegram_bot_api_version =28.0.0
1010micro_utils_version =0.26.2
1111serialization_version =1.9.0
1212ktor_version =3.2.3
You can’t perform that action at this time.
0 commit comments