mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-19 21:49:00 +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>,
|
cx: UpdateWithCx<AutoSend<Bot>, Message>,
|
||||||
dialogue: Dialogue,
|
dialogue: Dialogue,
|
||||||
) -> TransitionOut<Dialogue> {
|
) -> TransitionOut<Dialogue> {
|
||||||
match cx.update.text_owned() {
|
match cx.update.text().map(ToOwned::to_owned) {
|
||||||
None => {
|
None => {
|
||||||
cx.answer("Send me a text message.").await?;
|
cx.answer("Send me a text message.").await?;
|
||||||
next(dialogue)
|
next(dialogue)
|
||||||
|
|
Loading…
Add table
Reference in a new issue