Simplify support handler branch structure

This commit is contained in:
2025-06-21 23:57:46 +02:00
parent a26186f2ad
commit 5bc2a83f8d

View File

@@ -58,10 +58,8 @@ pub async fn support_command_handler(
pub fn get_support_handler() -> crate::bots::BotHandler { pub fn get_support_handler() -> crate::bots::BotHandler {
dptree::entry().branch( dptree::entry().branch(
Update::filter_message().branch( Update::filter_message()
dptree::entry()
.filter_command::<SupportCommand>() .filter_command::<SupportCommand>()
.endpoint(support_command_handler), .endpoint(support_command_handler),
),
) )
} }