fixes
Some checks failed
CI / Check (pull_request) Has been cancelled
CI / Format (pull_request) Has been cancelled
CI / Clippy (pull_request) Has been cancelled
CI / Build (macos-latest) (pull_request) Has been cancelled
CI / Build (ubuntu-latest) (pull_request) Has been cancelled
CI / Build (windows-latest) (pull_request) Has been cancelled

This commit is contained in:
Mikhail Kilin
2026-01-28 01:29:03 +03:00
parent f291191577
commit 051c4a0265
29 changed files with 2189 additions and 45 deletions

View File

@@ -1,4 +1,5 @@
mod app;
mod config;
mod input;
mod tdlib;
mod ui;
@@ -26,6 +27,9 @@ async fn main() -> Result<(), io::Error> {
// Загружаем переменные окружения из .env
let _ = dotenvy::dotenv();
// Загружаем конфигурацию (создаёт дефолтный если отсутствует)
let config = config::Config::load();
// Отключаем логи TDLib ДО создания клиента
disable_tdlib_logs();
@@ -37,7 +41,7 @@ async fn main() -> Result<(), io::Error> {
let mut terminal = Terminal::new(backend)?;
// Create app state
let mut app = App::new();
let mut app = App::new(config);
let res = run_app(&mut terminal, &mut app).await;
// Restore terminal