From 5bc2a83f8df490aabd2e9898b37b7414acf9a7ec Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sat, 21 Jun 2025 23:57:46 +0200 Subject: [PATCH] Simplify support handler branch structure --- src/bots/approved_bot/modules/support/mod.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/bots/approved_bot/modules/support/mod.rs b/src/bots/approved_bot/modules/support/mod.rs index 9161c4a..2df0d66 100644 --- a/src/bots/approved_bot/modules/support/mod.rs +++ b/src/bots/approved_bot/modules/support/mod.rs @@ -58,10 +58,8 @@ pub async fn support_command_handler( pub fn get_support_handler() -> crate::bots::BotHandler { dptree::entry().branch( - Update::filter_message().branch( - dptree::entry() - .filter_command::() - .endpoint(support_command_handler), - ), + Update::filter_message() + .filter_command::() + .endpoint(support_command_handler), ) }