Add admin order duplication to @RomanDoro
This commit is contained in:
parent
71f7d5d287
commit
d642378226
7
bot.js
7
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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user