Created
November 15, 2022 18:28
-
-
Save ishkumarr/f8a61a1268f618e2bb8e9d5e088ea16b 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://imgur.com/a/XomoSXl' //MAIN IMAGE URL HERE | |
const logo = 'https://imgur.com/a/XomoSXl' | |
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: "ππππ ππ’ππ π.π¬", | |
body: "α΄ΚΙͺα΄α΄ Κα΄Κα΄ π¦ !!", | |
mediaType: 1, | |
thumbnail: thumb, | |
sourceUrl: "http://wa.me/919817882309?text=_Heyy+Arin+!!πͺ_" | |
} | |
// 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ΫͺΫͺཻུꦽꦼ̷βΈβΉβ’βββββββββββββββ‘α | |
β *γ π π¬ ππ‘π§π₯π’ γ* | |
β *I'm Ish Sharma aka Arin Sharma* | |
β *Proudly from India* | |
β *Lead Graphic Designer* | |
β *19 Years, since grinding* | |
β *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