diff --git a/bot.js b/bot.js index 776ec2b..94cce36 100644 --- a/bot.js +++ b/bot.js @@ -171,6 +171,13 @@ case 'await_quantity': { inline_keyboard: [[{ text: 'Оплатить', url: 'https://kaspi.me/pay/87016789719' }]], }, }); + // Дублировать заказ администратору @RomanDoro + try { + const adminChat = await bot.api.getChat('@RomanDoro'); + await bot.api.sendMessage(adminChat.id, `📩 Дубликат заказа:\n${formatOrder(order)}`); + } catch (e) { + console.error('Не удалось отправить дубликат администратору:', e); + } reset(chatId); break; } diff --git a/data.json b/data.json index 0637a08..bcc4501 100644 --- a/data.json +++ b/data.json @@ -1 +1,12 @@ -[] \ No newline at end of file +[ + { + "id": 1791286408137, + "type": "коробка", + "quantity": 1, + "date": "2026-10-07", + "time": "11:00", + "name": "Роман", + "phone": "87059631941", + "total": 3000 + } +] \ No newline at end of file