From 7f4b7c1eb1a8014797ea116595115ad464ad5de4 Mon Sep 17 00:00:00 2001 From: OpenClaw Assistant Date: Tue, 3 Mar 2026 00:11:40 +0300 Subject: [PATCH] fix(paradizweb): confirm booking lead dispatch after contact capture --- integrations/paradiz-web/paradiz-web-agent-server.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/integrations/paradiz-web/paradiz-web-agent-server.mjs b/integrations/paradiz-web/paradiz-web-agent-server.mjs index 1ee64ae..330c109 100644 --- a/integrations/paradiz-web/paradiz-web-agent-server.mjs +++ b/integrations/paradiz-web/paradiz-web-agent-server.mjs @@ -231,9 +231,15 @@ const server = http.createServer(async (req, res) => { } if (clientId && pendingBookingByClient.get(clientId) && hasContactInfo(question) && !bookingLeadSentByClient.get(clientId)) { - await sendTelegramBookingLead(question).catch(() => {}); + const sent = await sendTelegramBookingLead(question).catch(() => false); pendingBookingByClient.delete(clientId); bookingLeadSentByClient.set(clientId, true); + return json(res, 200, { + ok: true, + answer: sent + ? 'Спасибо! Передала заявку на бронь менеджеру, он свяжется с вами.' + : 'Спасибо! Контакт записала. Есть техническая задержка с уведомлением менеджера, но заявка сохранена.' + }); } if (isExternalActionRequest(question)) {