Update README.md

This commit is contained in:
Temirkhan Myrzamadi 2020-02-14 04:11:29 +06:00 committed by GitHub
parent bea4d7c57f
commit 9c005dc0e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,6 @@ enum Dialogue {
Start,
ReceiveAttempt(u8),
}
async fn handle_message(
ctx: DialogueHandlerCtx<Message, Dialogue>,
) -> Result<DialogueStage<Dialogue>, RequestError> {
@ -172,7 +171,11 @@ async fn handle_message(
}
},
Err(_) => {
ctx.answer("Oh, please, send me a number!").send().await?;
ctx.answer(
"Oh, please, send me a number in the range [1; 10]!",
)
.send()
.await?;
next(ctx.dialogue)
}
},