mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Fix examples/dialogue.rs
according to teloxide::handler!
This commit is contained in:
parent
d3f1cbfbb2
commit
b88f73b35f
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ async fn receive_age(
|
|||
bot: AutoSend<Bot>,
|
||||
msg: Message,
|
||||
dialogue: MyDialogue,
|
||||
(full_name,): (String,), // Available from `State::ReceiveAge`.
|
||||
full_name: String, // Available from `State::ReceiveAge`.
|
||||
) -> HandlerResult {
|
||||
match msg.text().map(|text| text.parse::<u8>()) {
|
||||
Some(Ok(age)) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue