Added reviews. Added pricing.
Build and Publish / Build and Publish Docker Image (push) Successful in 6m27s

This commit is contained in:
Ultradesu
2026-05-11 11:34:11 +01:00
parent ff32e6bbaf
commit d1ef66acc1
14 changed files with 839 additions and 194 deletions
+6 -1
View File
@@ -4,7 +4,12 @@ use crate::models::Setting;
/// Send a Telegram message using bot settings from DB.
/// Silently ignores errors (missing config, network issues) — notifications are best-effort.
pub async fn notify_new_lead(db: &Database, name: &str, phone: Option<&str>, comment: Option<&str>) {
pub async fn notify_new_lead(
db: &Database,
name: &str,
phone: Option<&str>,
comment: Option<&str>,
) {
let token = match get_setting(db, "telegram_bot_token").await {
Some(t) if !t.is_empty() => t,
_ => return,