diff --git a/src/bots/approved_bot/modules/support/mod.rs b/src/bots/approved_bot/modules/support/mod.rs index 50c1ea7..970fb6f 100644 --- a/src/bots/approved_bot/modules/support/mod.rs +++ b/src/bots/approved_bot/modules/support/mod.rs @@ -60,5 +60,7 @@ pub async fn support_command_handler( pub fn get_support_handler() -> crate::bots::BotHandler { Update::filter_message() .filter_command::() - .endpoint(support_command_handler) + .endpoint(|message: Message, bot: CacheMe>| async move { + support_command_handler(message, &bot).await + }) }