mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-10 18:30:24 +01:00
Add register functions
This commit is contained in:
@@ -261,7 +261,7 @@ pub async fn message_handler(message: Message, bot: AutoSend<Bot>) -> BotHandler
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_search_hanlder() -> crate::bots::BotHandler {
|
||||
pub fn get_search_handler() -> crate::bots::BotHandler {
|
||||
dptree::entry().branch(
|
||||
Update::filter_message()
|
||||
.endpoint(|message, bot| async move { message_handler(message, bot).await }),
|
||||
|
||||
Reference in New Issue
Block a user