mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix
This commit is contained in:
@@ -280,7 +280,7 @@ pub fn get_book_handler() -> crate::bots::BotHandler {
|
|||||||
Update::filter_message()
|
Update::filter_message()
|
||||||
.chain(filter_command::<BookCommand>())
|
.chain(filter_command::<BookCommand>())
|
||||||
.endpoint(
|
.endpoint(
|
||||||
|message: Message, bot: CacheMe<Throttle<Bot>>, command: BookCommand, user_langs_cache: Cache<UserId, Vec<String>>| async move {
|
|message: Message, bot: CacheMe<Throttle<Bot>>, command: BookCommand, app_state: AppState| async move {
|
||||||
match command {
|
match command {
|
||||||
BookCommand::Author { .. } => {
|
BookCommand::Author { .. } => {
|
||||||
send_book_handler(
|
send_book_handler(
|
||||||
@@ -288,7 +288,7 @@ pub fn get_book_handler() -> crate::bots::BotHandler {
|
|||||||
bot,
|
bot,
|
||||||
command,
|
command,
|
||||||
get_author_books,
|
get_author_books,
|
||||||
user_langs_cache
|
app_state.user_langs_cache
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
@@ -298,7 +298,7 @@ pub fn get_book_handler() -> crate::bots::BotHandler {
|
|||||||
bot,
|
bot,
|
||||||
command,
|
command,
|
||||||
get_translator_books,
|
get_translator_books,
|
||||||
user_langs_cache
|
app_state.user_langs_cache
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
@@ -308,7 +308,7 @@ pub fn get_book_handler() -> crate::bots::BotHandler {
|
|||||||
bot,
|
bot,
|
||||||
command,
|
command,
|
||||||
get_sequence_books,
|
get_sequence_books,
|
||||||
user_langs_cache,
|
app_state.user_langs_cache,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user