mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Add a note about deprecated DialogueState
This commit is contained in:
parent
5e122ab919
commit
6646fe5758
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,8 @@ If you implement `UpdateListener` yourself, note that `StopToken` is now require
|
||||||
|
|
||||||
`BotCommand` trait was renamed to `BotCommands`. `BotCommands::descriptions` not returns `CommandDescriptions` instead of `String`. To get string, you can call `.to_string()`.
|
`BotCommand` trait was renamed to `BotCommands`. `BotCommands::descriptions` not returns `CommandDescriptions` instead of `String`. To get string, you can call `.to_string()`.
|
||||||
|
|
||||||
|
`#[derive(DialogueState)]` is deprecated in favour of `teloxide::handler!`, a more flexible API for dealing with dialogues. [`examples/dialogue.rs`](https://github.com/teloxide/teloxide/blob/03521bfd3d68f6f576dcc44b5473aaa5ce9b553f/examples/dialogue.rs) shows how to use it.
|
||||||
|
|
||||||
[0.5 -> 0.6 migration guide]: #05---06
|
[0.5 -> 0.6 migration guide]: #05---06
|
||||||
|
|
||||||
## 0.6 -> 0.7
|
## 0.6 -> 0.7
|
||||||
|
|
Loading…
Reference in a new issue