From bc0e9b19a4e6d2fffbd40a0a67de8b5c935cff9b Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Sat, 23 Apr 2022 22:45:43 +0600 Subject: [PATCH] `ProductChosen` => `ReceiveProductChoice` --- examples/purchase.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/purchase.rs b/examples/purchase.rs index 1d6560d1..bb0d7290 100644 --- a/examples/purchase.rs +++ b/examples/purchase.rs @@ -26,7 +26,7 @@ type HandlerResult = Result<(), Box>; pub enum State { Start, ReceiveFullName, - ProductChosen { full_name: String }, + ReceiveProductChoice { full_name: String }, } impl Default for State { @@ -60,7 +60,7 @@ async fn main() { ) .branch( Update::filter_callback_query().chain( - teloxide::handler![State::ProductChosen { full_name }] + teloxide::handler![State::ReceiveProductChoice { full_name }] .endpoint(receive_product_selection), ), ) @@ -107,7 +107,7 @@ async fn receive_full_name( ); bot.send_message(msg.chat.id, "Select a product:").reply_markup(products).await?; - dialogue.update(State::ProductChosen { full_name }).await?; + dialogue.update(State::ReceiveProductChoice { full_name }).await?; } None => { bot.send_message(msg.chat.id, "Please, send me your full name.").await?;