This commit is contained in:
julien 2025-05-06 13:55:26 +02:00
parent 2414e79dce
commit 563760f812

View File

@ -126,53 +126,21 @@ app.post('/sendButtons', async (req, res) => {
if (!sock || !isConnected) return res.status(400).json({ error: 'Non connecté' });
try {
await sock.sendMessage(`${phone}@s.whatsapp.net`, {
text: "Hello World !",
footer: "© Fizzxy Dev",
text: "Découvre nos services",
footer: "Powered by Fizzxy",
buttons: [
{
buttonId: '.tes',
buttonId: "visit_site",
buttonText: {
displayText: 'TESTING BOT'
},
type: 1
},
{
buttonId: ' ',
buttonText: {
displayText: 'PRIVATE SCRIPT'
},
type: 1
},
{
buttonId: 'action',
buttonText: {
displayText: 'ini pesan interactiveMeta'
displayText: "🌐 Visiter le site"
},
type: 4,
nativeFlowInfo: {
name: 'single_select',
name: "ctl_url",
paramsJson: JSON.stringify({
title: 'message',
sections: [
{
title: 'FizzxyDev - 2025',
highlight_label: '😜',
rows: [
{
header: 'HEADER 1',
title: 'TITLE 1',
description: 'DESCRIPTION 1',
id: 'id_1'
},
{
header: 'HEADER 2',
title: 'TITLE 2',
description: 'DESCRIPTION 2',
id: 'id_2'
}
]
}
]
display_text: "🌐 Visiter le site",
url: "https://canguidev.fr",
merchant_url: "https://canguidev.fr"
})
}
}
@ -180,6 +148,7 @@ app.post('/sendButtons', async (req, res) => {
headerType: 1,
viewOnce: true
});
res.json({ success: true });
} catch (e) {