This commit is contained in:
cangui 2025-05-06 21:16:39 +02:00
parent d2353f9b5b
commit 1bc18fbbaf

View File

@ -71,9 +71,8 @@ app.post('/sendText', async (req, res) => {
app.post('/sendButtons', async (req, res) => {
const { phone } = req.body;
if (!client || !isConnected) {
return res.status(400).json({ error: 'Non connecté' });
}
if (!sock || !isConnected) return res.status(400).json({ error: 'Non connecté' });
const BASE_URL = process.env.BASE_URL || 'https://wa.canguidev.fr';
const imageUrl = `${BASE_URL}/static/logo-merlo-cs-FR.jpg`;