Fix examples/dialogue_bot

This commit is contained in:
Temirkhan Myrzamadi 2021-03-18 01:56:41 +06:00
parent f0d4bc320b
commit 9a90148114

View file

@ -46,7 +46,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)