mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Fix
This commit is contained in:
@@ -25,7 +25,7 @@ pub struct Config {
|
||||
pub files_url: String,
|
||||
|
||||
pub bot_tokens: Vec<String>,
|
||||
pub temp_channel_username: String,
|
||||
pub temp_channel_id: i64,
|
||||
|
||||
pub sentry_dsn: String,
|
||||
}
|
||||
@@ -61,7 +61,7 @@ impl Config {
|
||||
files_url: get_env("FILES_SERVER_URL"),
|
||||
|
||||
bot_tokens: serde_json::from_str(&get_env("BOT_TOKENS")).unwrap(),
|
||||
temp_channel_username: get_env("TEMP_CHANNEL_USERNAME"),
|
||||
temp_channel_id: get_env("TEMP_CHANNEL_ID").parse().unwrap(),
|
||||
|
||||
sentry_dsn: get_env("SENTRY_DSN"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user