Push scheduled-job failure summaries to WhatsApp and clarify pending access.

Enqueue a short English failure notice on job crashes, default scheduler lang to en, and tell unauthorized users their request id is pending admin YES.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-10 22:59:40 +08:00
parent d3f621b58b
commit 4646170743
6 changed files with 186 additions and 9 deletions

View file

@ -500,7 +500,7 @@ def handle_whatsapp_access(
{
"channel": "whatsapp",
"chat_id": inbound.external_chat_id,
"text": denied_reply_text(lang=lang),
"text": denied_reply_text(lang=lang, pending_id=str(pending_id or "")),
"attachments": [],
"metadata": reply_meta,
}