From f52590868cc25e5f6acb0bc05674ef354c219584 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 17 Feb 2023 16:04:32 +0600 Subject: [PATCH] fix according to update of tgbotapi version --- FSMBot/src/main/kotlin/SimpleFSMBot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FSMBot/src/main/kotlin/SimpleFSMBot.kt b/FSMBot/src/main/kotlin/SimpleFSMBot.kt index 9d9a7f0..c5fe9ed 100644 --- a/FSMBot/src/main/kotlin/SimpleFSMBot.kt +++ b/FSMBot/src/main/kotlin/SimpleFSMBot.kt @@ -48,7 +48,7 @@ suspend fun main(args: Array) { +"Send me some content or " + botCommand("stop") + " if you want to stop sending" } - val contentMessage = waitContentMessage().filter { message -> + val contentMessage = waitAnyContentMessage().filter { message -> message.sameThread(it.sourceMessage) }.first() val content = contentMessage.content