Skip to content

Instantly share code, notes, and snippets.

@ishkumarr
Created November 15, 2022 18:28
Show Gist options
  • Save ishkumarr/f8a61a1268f618e2bb8e9d5e088ea16b to your computer and use it in GitHub Desktop.
Save ishkumarr/f8a61a1268f618e2bb8e9d5e088ea16b to your computer and use it in GitHub Desktop.
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