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
f022e73a08
commit
5b489747d5
1 changed files with 1 additions and 6 deletions
|
@ -222,11 +222,6 @@ pub type Dialogue = Coprod!(
|
|||
ReceiveAgeState,
|
||||
ReceiveFavouriteMusicState,
|
||||
);
|
||||
|
||||
wrap_dialogue!(
|
||||
Wrapper(Dialogue),
|
||||
default Self(Dialogue::inject(StartState)),
|
||||
);
|
||||
```
|
||||
|
||||
The [`wrap_dialogue!`](https://docs.rs/teloxide/latest/teloxide/macro.wrap_dialogue.html) macro generates a new-type of `Dialogue` with a default implementation.
|
||||
|
@ -345,7 +340,7 @@ async fn main() {
|
|||
[start, receive_full_name, receive_age, receive_favourite_music]
|
||||
)
|
||||
.expect("Something wrong with the bot!")
|
||||
}))
|
||||
}, || Dialogue::inject(StartState)))
|
||||
.dispatch()
|
||||
.await;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue