mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Simplify support handler branch structure
This commit is contained in:
@@ -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()
|
||||
Update::filter_message()
|
||||
.filter_command::<SupportCommand>()
|
||||
.endpoint(support_command_handler),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user