diff --git a/FSMBot/src/main/kotlin/SimpleFSMBot.kt b/FSMBot/src/main/kotlin/SimpleFSMBot.kt index 5c569f5..9b37e22 100644 --- a/FSMBot/src/main/kotlin/SimpleFSMBot.kt +++ b/FSMBot/src/main/kotlin/SimpleFSMBot.kt @@ -38,12 +38,11 @@ suspend fun main(args: Array) { } ) { strictlyOn { - 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) { } } strictlyOn { - send(it.context, "You have stopped sending of content") + send(it.context) { +"You have stopped sending of content" } null }