diff --git a/Cargo.toml b/Cargo.toml index d210703e..81534709 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,7 +74,7 @@ full = [ teloxide-core = { version = "0.3.3", default-features = false } #teloxide-core = { git = "https://github.com/teloxide/teloxide-core.git", rev = "...", default-features = false } #teloxide-macros = { version = "0.4", optional = true } -teloxide-macros = { path = "../teloxide-macros", optional = true } +teloxide-macros = { git = "https://github.com/teloxide/teloxide-macros", branch = "dispatching2", optional = true } serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } diff --git a/examples/dialogue_bot/src/main.rs b/examples/dialogue_bot/src/main.rs index 75580c37..7042e245 100644 --- a/examples/dialogue_bot/src/main.rs +++ b/examples/dialogue_bot/src/main.rs @@ -25,7 +25,7 @@ type Store = SqliteStorage; type BotDialogue = Dialogue; #[derive(DialogueState, Clone, serde::Serialize, serde::Deserialize)] -#[out(anyhow::Result<()>)] +#[handler_out(anyhow::Result<()>)] pub enum State { #[handler(handle_start)] Start, diff --git a/tests/bot_dialogue.rs b/tests/bot_dialogue.rs index b3cf3536..d1fd7d4c 100644 --- a/tests/bot_dialogue.rs +++ b/tests/bot_dialogue.rs @@ -8,8 +8,7 @@ use teloxide::macros::DialogueState; fn compile_test() { #[allow(dead_code)] #[derive(DialogueState, Clone)] - #[out(Result<(), teloxide::RequestError>)] - #[store(teloxide::dispatching2::dialogue::InMemStorage)] + #[handler_out(Result<(), teloxide::RequestError>)] enum State { #[handler(handle_start)] Start, @@ -38,8 +37,7 @@ fn compile_test() { fn compile_test_generics() { #[allow(dead_code)] #[derive(DialogueState, Clone)] - #[out(Result<(), teloxide::RequestError>)] - #[store(teloxide::dispatching2::dialogue::InMemStorage>)] + #[handler_out(Result<(), teloxide::RequestError>)] enum State { #[handler(handle_start)] Start,