mirror of
https://github.com/wasrusgen/zov-tech.git
synced 2026-06-03 16:24:50 +00:00
NEW HANDLERS: - _handle_clients: groups manager's Leads by client (name or tg_id), returns list with leads_count, last_lead_at, client_phone (extracted from checklist), and full leads array per client. Sorted by recency desc. - _handle_lead: fetches single lead with parsed checklist + ai_response JSON. Validates ownership (manager_tg_id matches caller). NEW ENDPOINTS: - POST /api/clients — list of manager's clients with summary - POST /api/lead — single lead detail with ai_response for re-render Both accept initData auth, only manager role can call. Apps Script compat: ?path=clients and ?path=lead also work. |
||
|---|---|---|
| .. | ||
| parsers | ||
| __init__.py | ||
| ai.py | ||
| auth.py | ||
| catalog.py | ||
| config.py | ||
| main.py | ||
| proxy_pool.py | ||
| sheets.py | ||
| telegram.py | ||