mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
Fix examples/dialogue_bot
This commit is contained in:
parent
f0d4bc320b
commit
9a90148114
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue