Add register functions

This commit is contained in:
2023-01-17 20:36:11 +01:00
parent 4eb42a4405
commit c7d115f9ce
8 changed files with 216 additions and 4 deletions

View File

@@ -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 }),