From 1e33ced0d3fa3ce31f34b0d24409e9204a2a4307 Mon Sep 17 00:00:00 2001 From: vendelieu Date: Thu, 21 Nov 2024 04:08:13 +0300 Subject: [PATCH] change guard example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e0b8d37253..5c7fa9db5a 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,8 @@ suspend fun start(user: User, bot: TelegramBot) { bot.inputListener[user] = "conversation" } -@InputHandler(["conversation"], guard = UserPresentGuard::class) +@InputHandler(["conversation"]) +@Guard(UserPresentGuard::class) suspend fun startConversation(update: ProcessedUpdate, user: User, bot: TelegramBot) { message { "Nice to meet you, ${update.text}" }.send(user, bot) message { "What is your favorite food?" }.send(user, bot)