mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2025-11-01 20:50:51 +00:00
finalize changes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user