Spaces:
Paused
Paused
File size: 1,058 Bytes
e397e12 8cc06be 96501b9 279efe6 8cc06be 279efe6 8cc06be e397e12 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
/*const config = require('../config');
const { cmd, commands } = require('../command');
const { fetchJson } = require('../lib/functions');
const { Buttons, List } = require('whatsapp-web.js');
cmd({
pattern: "testbutton",
alias: [],
react: "π",
desc: "Test buttons",
category: "test",
filename: __filename
}, async (conn, mek, m, {
from,
quoted,
body,
isCmd,
command,
args,
q,
isGroup,
sender,
senderNumber,
botNumber2,
botNumber,
pushname,
isMe,
isOwner,
groupName,
participants,
groupAdmins,
isBotAdmins,
isAdmins,
reply
}) => {
try {
const buttons = [
{ buttonId: 'id1', buttonText: { displayText: 'Button 1' }, type: 1 },
{ buttonId: 'id2', buttonText: { displayText: 'Button 2' }, type: 1 }
];
const buttonMessage = {
text: "Test buttons",
footer: "Button footer",
buttons: buttons,
headerType: 1
};
await reply(buttonMessage);
} catch (error) {
console.error(error);
reply(`An error occurred: ${error.message}`);
}
});
*/
|