mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Update README.md
This commit is contained in:
parent
c6c86691a0
commit
81ffc5cbb3
1 changed files with 8 additions and 1 deletions
|
@ -261,7 +261,14 @@ Our [finite automaton](https://en.wikipedia.org/wiki/Finite-state_machine), desi
|
|||
|
||||
Remember that a classical [finite automaton](https://en.wikipedia.org/wiki/Finite-state_machine) is defined by its initial state, a list of its possible states and a transition function? We can think that `Dialogue` is a finite automaton with a context type at each state (`Dialogue::Start` has `()`, `Dialogue::ReceiveAttempt` has `u8`).
|
||||
|
||||
See [examples/dialogue_bot](https://github.com/teloxide/teloxide/blob/master/examples/dialogue_bot/src/main.rs) to see a bit more complicated bot with dialogues. [See more examples](https://github.com/teloxide/teloxide/tree/master/examples) to get into teloxide!
|
||||
See [examples/dialogue_bot](https://github.com/teloxide/teloxide/blob/master/examples/dialogue_bot/src/main.rs) to see a bit more complicated bot with dialogues.
|
||||
|
||||
## More examples!
|
||||
- [ping_pong_bot](ping_pong_bot) - Answers "pong" to each incoming message.
|
||||
- [simple_commands_bot](simple_commands_bot) - Shows how to deal with bot's commands.
|
||||
- [guess_a_number_bot](guess_a_number_bot) - The "guess a number" game.
|
||||
- [dialogue_bot](dialogue_bot) - Drive a dialogue with a user using a type-safe finite automaton.
|
||||
- [admin_bot](admin_bot) - A bot, which can ban, kick, and mute on a command.
|
||||
|
||||
## Recommendations
|
||||
- Use this pattern:
|
||||
|
|
Loading…
Reference in a new issue