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 {
|
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),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user