From 8a353901505fa3951f0888e828914fa769168f6d Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sun, 22 Jun 2025 00:08:05 +0200 Subject: [PATCH] Refactor support handler to remove unnecessary dptree entry --- src/bots/approved_bot/modules/support/mod.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/bots/approved_bot/modules/support/mod.rs b/src/bots/approved_bot/modules/support/mod.rs index 2df0d66..e2deac7 100644 --- a/src/bots/approved_bot/modules/support/mod.rs +++ b/src/bots/approved_bot/modules/support/mod.rs @@ -2,6 +2,7 @@ use crate::bots::BotHandlerInternal; use teloxide::{ adaptors::{CacheMe, Throttle}, + dispatching::UpdateFilterExt, prelude::*, utils::command::BotCommands, }; @@ -57,9 +58,7 @@ pub async fn support_command_handler( } pub fn get_support_handler() -> crate::bots::BotHandler { - dptree::entry().branch( - Update::filter_message() - .filter_command::() - .endpoint(support_command_handler), - ) + Update::filter_message() + .filter_command::() + .endpoint(support_command_handler) }