Переписал бота с NestJS/TypeScript на Rust

Стек: teloxide + sqlx + axum + tokio-cron-scheduler.
Вся логика перенесена: /start, /help, /settings, выбор частоты,
cron-рассылка цитат, admin API. Совместимость с существующей БД
сохранена (camelCase колонки). Старый TypeScript-код удалён.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mikhail Kilin
2026-02-16 01:55:20 +03:00
parent 0269e62f16
commit b885fd39b9
43 changed files with 4085 additions and 10826 deletions

18
Cargo.toml Normal file
View File

@@ -0,0 +1,18 @@
[package]
name = "mental_health_bot"
version = "0.1.0"
edition = "2021"
[dependencies]
tokio = { version = "1", features = ["full"] }
teloxide = { version = "0.13", features = ["macros"] }
sqlx = { version = "0.8", features = ["postgres", "chrono", "migrate", "runtime-tokio-rustls"] }
axum = "0.8"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
chrono = { version = "0.4", features = ["serde"] }
tokio-cron-scheduler = "0.13"
dotenvy = "0.15"
tracing = "0.1"
tracing-subscriber = "0.3"
rand = "0.8"