Added reviews. Added pricing.
Build and Publish / Build and Publish Docker Image (push) Successful in 6m27s
Build and Publish / Build and Publish Docker Image (push) Successful in 6m27s
This commit is contained in:
+6
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user