Last active
January 27, 2022 15:36
-
-
Save spector01/3d749903ba601222950fa9987f14572e to your computer and use it in GitHub Desktop.
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 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