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:
@@ -363,8 +363,10 @@ async fn get_download_archive_keyboard_handler(
|
|||||||
message: Message,
|
message: Message,
|
||||||
bot: CacheMe<Throttle<Bot>>,
|
bot: CacheMe<Throttle<Bot>>,
|
||||||
command: DownloadArchiveCommand,
|
command: DownloadArchiveCommand,
|
||||||
user_langs_cache: Cache<UserId, Vec<String>>
|
app_state: AppState,
|
||||||
) -> BotHandlerInternal {
|
) -> BotHandlerInternal {
|
||||||
|
let user_langs_cache = app_state.user_langs_cache;
|
||||||
|
|
||||||
let allowed_langs = get_user_or_default_lang_codes(
|
let allowed_langs = get_user_or_default_lang_codes(
|
||||||
message.from().unwrap().id,
|
message.from().unwrap().id,
|
||||||
user_langs_cache
|
user_langs_cache
|
||||||
|
|||||||
Reference in New Issue
Block a user