Skip to content

Instantly share code, notes, and snippets.

@spector01
Last active January 27, 2022 15:36
Show Gist options
  • Select an option

  • Save spector01/3d749903ba601222950fa9987f14572e to your computer and use it in GitHub Desktop.

Select an option

Save spector01/3d749903ba601222950fa9987f14572e to your computer and use it in GitHub Desktop.
const Favas = require("../Utilis/events");
const { forwardOrBroadCast } = require("../Utilis/groupmute");
const { getBuffer } = require('../Utilis/download');
const { parseJid } = require("../Utilis/vote");
// FAVAS-SB
const url = 'https://i.imgur.com/g4l3lqA.jpeg'
Favas.addCommand(
{ pattern: 'sb ?(.*)', fromMe: true, desc: "Forward replied msg." },
async (message, match) => {
if (match == "") return await message.sendMessage("*Give me a jid*\nExample .mforward jid1 jid2 jid3 jid4 ...");
if (!message.reply_message)
return await message.sendMessage("*Reply to a Message*");
const buff = await getBuffer(url)
let options = {}
options.ptt = true
options.quoted = {
key: {
fromMe: false,
participant: "[email protected]",
},
message: {
"orderMessage": {
"itemCount" : 97342175,
"status": 1,
"surface" : 1,
"message": "κ§πš’πš'𝚜 πš–πšŽ πšœπš™πšŽπšŒπšπšŽπš›κ§‚β„’",
"orderTitle": "κ§πš’πš'𝚜 πš–πšŽ πšœπš™πšŽπšŒπšπšŽπš›κ§‚",
"thumbnail": buff.buffer,
"sellerJid": '[email protected]'
}
}
}
options.contextInfo = {
forwardingScore: 999,
isForwarded: true
}
options.duration = 999999,
match.match(parseJid).map((jid) => {
forwardOrBroadCast(jid, message, options);
});
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment