Refactor support handler to remove unnecessary dptree entry

This commit is contained in:
2025-06-22 00:08:05 +02:00
parent 5bc2a83f8d
commit 8a35390150

View File

@@ -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::<SupportCommand>()
.endpoint(support_command_handler),
)
Update::filter_message()
.filter_command::<SupportCommand>()
.endpoint(support_command_handler)
}