Skip to content

Instantly share code, notes, and snippets.

@ADK-RICHU
Forked from Akshay-Eypz/owner.js
Last active November 10, 2024 02:00
Show Gist options
  • Select an option

  • Save ADK-RICHU/5019006f848dd8a36db307b483a2bf5d to your computer and use it in GitHub Desktop.

Select an option

Save ADK-RICHU/5019006f848dd8a36db307b483a2bf5d to your computer and use it in GitHub Desktop.
Owner
const { izumi, mode } = require('../lib/');
izumi({
pattern: "owner$",
fromMe: mode,
desc: "Bot Owner",
type: "user",
}, async (message, match, client) => {
try {
const name = 'Asᴛʀᴏ Bᴏᴛ ☔', title = "Asᴛʀᴏ Bᴏᴛ Sᴜᴘᴘᴏʀᴛ🧚‍♂️", number = '916282122603', body = "Asᴛʀᴏ Bᴏᴛ ☔";
const image = "https://telegra.ph/file/492557f2589925dc372c1.jpg", sourceUrl = 'https://chat.whatsapp.com/I9WpnuNlTj8ELutpU4qfl7';
const vcard = `BEGIN:VCARD\nVERSION:3.0\nFN:${name}\nTEL;type=CELL;type=VOICE;waid=${number}:${number}\nEND:VCARD`;
await client.sendMessage(message.jid, {
contacts: {
contacts: [{ vcard }]
},
contextInfo: {
externalAdReply: {
title: `${title}`,
body: `${body}`,
sourceUrl: `${sourceUrl}`,
mediaUrl: `${sourceUrl}`,
mediaType: 1,
showAdAttribution: true,
renderLargerThumbnail: true,
thumbnailUrl: `${image}`
}
}
});
} catch (error) {
console.error('Error occurred:', error);
await client.sendMessage(message.jid, { text: '```Error occurred while executing the command.```' });
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment