Skip to content

Instantly share code, notes, and snippets.

@Abhisirwabotofc
Created February 27, 2022 02:33
Show Gist options
  • Save Abhisirwabotofc/0ce2473fe73dd73c1af86b0848be7987 to your computer and use it in GitHub Desktop.
Save Abhisirwabotofc/0ce2473fe73dd73c1af86b0848be7987 to your computer and use it in GitHub Desktop.
owner
const hyper = require("../Utilis/events");
let {MessageType, MessageOptions, Mimetype} = require('@adiwajshing/baileys')
const { getBuffer } = require('../Utilis/download');
//Owner vcard by favas
hyper.addCommand( //by favas...
{ pattern: "owner ?(.*)", fromMe: true, desc: "send owner vcard" },
async (message, match) => {
const vcard = 'https://i.imgur.com/Q5jGWbN.png'
const favas = 'BEGIN:VCARD\n'
+ 'VERSION:3.0\n'
+ 'FN:4BH1 51R\n'//dont copy without credits ⚠️
+ 'ORG:4BH1 51R\n'
+ 'TEL;type=CELL;type=VOICE;waid=919400136149:919400136149\n'
+ 'END:VCARD'
const buff = await getBuffer(vcard)
await message.client.sendMessage(message.jid, {displayname: "4BH1 51R", vcard: favas}, MessageType.contact,{quoted : {
key: {
fromMe: false,
participant: "[email protected]",
remoteJid: "status@broadcast"
}, //Vcard sender by favas
message: {
"imageMessage": {
"jpegThumbnail": buff.buffer,
"caption": "️4BH1 51R"
}
}
}})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment