mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Update README.md
This commit is contained in:
parent
bea4d7c57f
commit
9c005dc0e2
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue