From 6646fe57588dc23b63a5374c47df1f84eab39719 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Sun, 17 Apr 2022 21:36:28 +0600 Subject: [PATCH] Add a note about deprecated `DialogueState` --- MIGRATION_GUIDE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index f6e8f46f..315cd9f1 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -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()`. +`#[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.6 -> 0.7