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:
@@ -1,6 +1,6 @@
|
|||||||
use std::{collections::HashSet, str::FromStr, vec};
|
use std::{collections::HashSet, str::FromStr, vec};
|
||||||
|
|
||||||
use crate::bots::{
|
use crate::{bots::{
|
||||||
approved_bot::{
|
approved_bot::{
|
||||||
services::user_settings::{
|
services::user_settings::{
|
||||||
create_or_update_user_settings, get_langs, get_user_or_default_lang_codes, Lang,
|
create_or_update_user_settings, get_langs, get_user_or_default_lang_codes, Lang,
|
||||||
@@ -8,7 +8,7 @@ use crate::bots::{
|
|||||||
tools::filter_callback_query,
|
tools::filter_callback_query,
|
||||||
},
|
},
|
||||||
BotHandlerInternal,
|
BotHandlerInternal,
|
||||||
};
|
}, bots_manager::AppState};
|
||||||
|
|
||||||
use moka::future::Cache;
|
use moka::future::Cache;
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
@@ -209,8 +209,8 @@ pub fn get_settings_handler() -> crate::bots::BotHandler {
|
|||||||
bot: CacheMe<Throttle<Bot>>,
|
bot: CacheMe<Throttle<Bot>>,
|
||||||
callback_data: SettingsCallbackData,
|
callback_data: SettingsCallbackData,
|
||||||
me: Me,
|
me: Me,
|
||||||
user_langs_cache: Cache<UserId, Vec<String>>| async move {
|
app_state: AppState| async move {
|
||||||
settings_callback_handler(cq, bot, callback_data, me, user_langs_cache).await
|
settings_callback_handler(cq, bot, callback_data, me, app_state.user_langs_cache).await
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user