several small improvements

This commit is contained in:
InsanusMokrassar 2022-09-19 14:58:34 +06:00
parent 29e1552618
commit e722055871

View File

@ -38,12 +38,11 @@ suspend fun main(args: Array<String>) {
}
) {
strictlyOn<ExpectContentOrStopState> {
sendMessage(
it.context,
buildEntities {
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
}