-
-
Save ShuhaibNC/30fb3bb8107c28cc75b741e465fb3991 to your computer and use it in GitHub Desktop.
shahir
This file contains hidden or 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 { | |
| forwardOrBroadCast, | |
| bot, | |
| parsedJid, | |
| getBuffer, | |
| options, | |
| } = require('../lib/') | |
| const url = 'https://i.imgur.com/3YGX7x8.jpeg' | |
| bot( | |
| { pattern: 'sha ?(.*)', fromMe: true, desc: "Forward replied msg." }, | |
| async (message, match) => { | |
| if (!match) return await message.sendMessage("*Give me a jid*\nExample .Q jid1 jid2 jid3 jid4 ..."); | |
| if (!message.reply_message) | |
| return await message.sendMessage("*πππππ’ ππ π° ππππππππβ£οΈ*"); | |
| const buff = await getBuffer(url) | |
| const options = {} | |
| if(message.reply_message.audio){ | |
| options.ptt = false // delete this if not need audio as voice always | |
| } | |
| options.linkPreview = { | |
| showAdAttribution: true, | |
| head: " --- κ±Κα΄ΚΙͺΚ Ι΄ α΄ ---", | |
| thumbnail: buff.buffer, | |
| mediaType: 2, | |
| sourceUrl: "" | |
| } | |
| for (let jid of parsedJid(match)) { | |
| await forwardOrBroadCast(jid, message, options); | |
| } | |
| } | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment