mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 17:52:12 +01:00
Highlight dialogues management (README.md)
This commit is contained in:
parent
0f8c3b5c4d
commit
4db66eaa83
1 changed files with 5 additions and 4 deletions
|
@ -39,17 +39,18 @@
|
||||||
|
|
||||||
## Highlights
|
## Highlights
|
||||||
|
|
||||||
- **Functional reactive design.** teloxide has [functional reactive design], allowing you to declaratively manipulate streams of updates from Telegram using filters, maps, folds, zips, and a lot of [other adaptors].
|
- **Functional reactive design.** teloxide follows [functional reactive design], allowing you to declaratively manipulate streams of updates from Telegram using filters, maps, folds, zips, and a lot of [other adaptors].
|
||||||
|
|
||||||
[functional reactive design]: https://en.wikipedia.org/wiki/Functional_reactive_programming
|
[functional reactive design]: https://en.wikipedia.org/wiki/Functional_reactive_programming
|
||||||
[other adaptors]: https://docs.rs/futures/latest/futures/stream/trait.StreamExt.html
|
[other adaptors]: https://docs.rs/futures/latest/futures/stream/trait.StreamExt.html
|
||||||
|
|
||||||
- **Persistence.** Dialogues management is independent of how/where dialogues are stored: you can just replace one line and make them [persistent]. Out-of-the-box storages include [Redis].
|
- **Dialogues management subsystem.** Dialogues are represented as [finite-state machines] augmented with some syntax sugar, thanks to attribute macros. We have designed our dialogues management subsystem to be easy-to-use, and, furthermore, to be independent of how/where dialogues are stored; for example, you can just replace one line to achieve [persistence]. Out-of-the-box storages include [Redis].
|
||||||
|
|
||||||
[persistent]: https://en.wikipedia.org/wiki/Persistence_(computer_science)
|
[persistence]: https://en.wikipedia.org/wiki/Persistence_(computer_science)
|
||||||
|
[finite-state machines]: https://en.wikipedia.org/wiki/Finite-state_machine
|
||||||
[Redis]: https://redis.io/
|
[Redis]: https://redis.io/
|
||||||
|
|
||||||
- **Strongly typed bot commands.** You can describe bot commands as enumerations, and then they'll be automatically constructed from strings. Just like you describe JSON structures in [serde-json] and command-line arguments in [structopt].
|
- **Strongly typed bot commands.** You can describe bot commands as enumerations, and then they'll be automatically constructed from strings -- just like JSON structures in [serde-json] and command-line arguments in [structopt].
|
||||||
|
|
||||||
[structopt]: https://github.com/TeXitoi/structopt
|
[structopt]: https://github.com/TeXitoi/structopt
|
||||||
[serde-json]: https://github.com/serde-rs/json
|
[serde-json]: https://github.com/serde-rs/json
|
||||||
|
|
Loading…
Reference in a new issue