migration to JS engine #1

Merged
akulij merged 131 commits from dev into main 2025-05-31 08:49:52 +00:00
Showing only changes of commit d428c8798d - Show all commits

View File

@ -19,9 +19,10 @@ use crate::{
update_user_tg, BotResult, update_user_tg, BotResult,
}; };
pub fn script_handler( pub type BotHandler =
rc: Arc<RwLock<RunnerConfig>>, Handler<'static, DependencyMap, BotResult<()>, teloxide::dispatching::DpHandlerDescription>;
) -> Handler<'static, DependencyMap, BotResult<()>, teloxide::dispatching::DpHandlerDescription> {
pub fn script_handler(rc: Arc<RwLock<RunnerConfig>>) -> BotHandler {
dptree::entry() dptree::entry()
.inspect(|u: Update| { .inspect(|u: Update| {
info!("{u:#?}"); // Print the update to the console with inspect info!("{u:#?}"); // Print the update to the console with inspect