require ADMIN_ID in config

reason: there should be fallback function that notifies admin about when
something went wrong
This commit is contained in:
Akulij 2025-05-02 15:45:43 +03:00
parent d3c8b7605d
commit 14f05e5213

View File

@ -39,6 +39,8 @@ pub struct Config {
pub db_url: String,
#[envconfig(from = "ADMIN_PASS")]
pub admin_password: String,
#[envconfig(from = "ADMIN_PASS")]
pub admin_id: u64,
}
#[derive(BotCommands, Clone)]