diff --git a/src/bot_handler.rs b/src/bot_handler.rs index 8a670ec..848d166 100644 --- a/src/bot_handler.rs +++ b/src/bot_handler.rs @@ -19,9 +19,10 @@ use crate::{ update_user_tg, BotResult, }; -pub fn script_handler( - rc: Arc>, -) -> Handler<'static, DependencyMap, BotResult<()>, teloxide::dispatching::DpHandlerDescription> { +pub type BotHandler = + Handler<'static, DependencyMap, BotResult<()>, teloxide::dispatching::DpHandlerDescription>; + +pub fn script_handler(rc: Arc>) -> BotHandler { dptree::entry() .inspect(|u: Update| { info!("{u:#?}"); // Print the update to the console with inspect