Fix examples/redis_remember_bot

This commit is contained in:
Temirkhan Myrzamadi 2021-03-18 01:50:48 +06:00 committed by Eric S. Londres
parent 07eb4c1148
commit 8178191d5a

View file

@ -52,7 +52,7 @@ async fn handle_message(
cx: UpdateWithCx<AutoSend<Bot>, Message>,
dialogue: Dialogue,
) -> TransitionOut<Dialogue> {
match cx.update.text_owned() {
match cx.update.text().map(ToOwned::to_owned) {
None => {
cx.answer("Send me a text message.").await?;
next(dialogue)