Update README.md

This commit is contained in:
Temirkhan Myrzamadi 2020-06-26 18:36:50 +06:00 committed by GitHub
parent f022e73a08
commit 5b489747d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}