From 9a901481145660c2013f7b94e496b72bbf0bc9d9 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Thu, 18 Mar 2021 01:56:41 +0600 Subject: [PATCH] Fix examples/dialogue_bot --- examples/dialogue_bot/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dialogue_bot/src/main.rs b/examples/dialogue_bot/src/main.rs index 310a69a3..cc2e6e76 100644 --- a/examples/dialogue_bot/src/main.rs +++ b/examples/dialogue_bot/src/main.rs @@ -46,7 +46,7 @@ async fn handle_message( cx: UpdateWithCx, Message>, dialogue: Dialogue, ) -> TransitionOut { - match cx.update.text_owned() { + match cx.update.text().map(ToOwned::to_owned) { None => { cx.answer("Send me a text message.").await?; next(dialogue)