Created
December 10, 2022 20:57
-
-
Save ishkumarr/d408a69b10805fec76c0a306f3845725 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Function, getBuffer } = require('../lib/') | |
const { generateWAMessage, proto } = require('@adiwajshing/baileys'); | |
const image = 'https://i.imgur.com/09HzSRs.jpeg' //MAIN IMAGE URL HERE | |
const logo = 'https://i.imgur.com/09HzSRs.jpeg' | |
Function( | |
{ | |
pattern: 'intro ?(.*)', | |
fromMe: true, | |
desc: 'Shows My Intro', | |
type: 'misc', | |
}, async (message, match) => { | |
const jid = message.jid | |
const number = message.client.user.jid | |
const thumb = await getBuffer(image) | |
const thumbnail = await getBuffer(logo) | |
const options = {} | |
options.contextInfo = { | |
forwardingScore: 999, // change it to 999 for many times forwarded | |
isForwarded: false, | |
} | |
// ADDED /* TO REMOVE LINK PREVIEW TYPE | |
options.linkPreview = { | |
renderLargerThumbnail: true, | |
showAdAttribution: true, | |
title: "Lord Arin", | |
body: "ᴄʟɪᴄᴋ ʜᴇʀᴇ 🦋 !!", | |
mediaType: 1, | |
thumbnail: thumb, | |
sourceUrl: "http://wa.me/919817882309?text=_៚Heyyyy+Arinnn+🪄_" | |
} | |
// ADDED */ TO REMOVE LINK PREVIEW TYPE | |
options.quoted = { | |
key: { | |
fromMe: false, | |
participant: "0@s.whatsapp.net", | |
remoteJid: "status@broadcast" | |
}, | |
message: { | |
'contactMessage': { | |
'displayName': `${message.pushName}`, //ADD `${message.client.user.name}` TO DISPLAY CLIENT USER NAME. | |
'vcard': `BEGIN:VCARD\nVERSION:3.0\nN:XL;${message.client.user.name},;;;\nFN:${message.client.user.name},\nitem1.TEL;waid=${number.split('@')[0]}:${number.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD`, | |
'jpegThumbnail': thumbnail | |
} | |
} | |
} | |
let messages = await generateWAMessage(message.jid, { text: `0ཻུ۪۪ꦽꦼ̷⸙‹•══════════════♡᭄ | |
│ *「 𝗠𝗬 𝗜𝗡𝗧𝗥𝗢 」* | |
│ *Name :* Ish Kumar | |
│ *Place :* Sonipat | |
│ *Gender :* ᴍᴀʟᴇ | |
│ *Age :* 19 | |
│ *Phone :* wa.me/919817882309 | |
│ *IG ID :* arinnsharma | |
│ *Status :* _ | |
╰═════ꪶ ཻུ۪۪ꦽꦼ̷⸙ ━ ━ ━ ━ ꪶ ཻུ۪۪ꦽꦼ̷⸙`}, {quoted: message.quoted || ''}) | |
await message.client.forwardMessage(message.jid, await proto.WebMessageInfo.fromObject(messages), options) | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment