Update README.md

This commit is contained in:
Temirkhan Myrzamadi 2020-07-28 22:09:43 +06:00 committed by GitHub
parent 1915497289
commit 1564f8d80a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -307,9 +307,10 @@ async fn receive_location(
}
```
</details>
All these subtransitions accept a corresponding state (one of the many variants of `Dialogue`), a context, and a textual message. They return `TransitionOut<Dialogue>`, e.g. a mapping from `<your state type>` to `Dialogue`.
Finally, the `main` function looks like this:
([dialogue_bot/src/main.rs](https://github.com/teloxide/teloxide/blob/master/examples/dialogue_bot/src/main.rs))