several small improvements

This commit is contained in:
InsanusMokrassar 2022-09-19 14:58:34 +06:00
parent 29e1552618
commit e722055871
1 changed files with 6 additions and 7 deletions

View File

@ -38,12 +38,11 @@ suspend fun main(args: Array<String>) {
}
) {
strictlyOn<ExpectContentOrStopState> {
sendMessage(
it.context,
buildEntities {
+"Send me some content or " + botCommand("stop") + " if you want to stop sending"
}
)
send(
it.context
) {
+"Send me some content or " + botCommand("stop") + " if you want to stop sending"
}
val contentMessage = waitContentMessage().first()
val content = contentMessage.content
@ -57,7 +56,7 @@ suspend fun main(args: Array<String>) {
}
}
strictlyOn<StopState> {
send(it.context, "You have stopped sending of content")
send(it.context) { +"You have stopped sending of content" }
null
}