Created
March 21, 2022 17:45
-
-
Save Castroebin/1bf7e6c1acd722d877f5695085fa29d5 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 Shadow = require("../Utilis/events"); | |
const { forwardOrBroadCast } = require("../Utilis/groupmute"); | |
const { getBuffer } = require('../Utilis/download'); | |
const { parsedJid } = require("../Utilis/Misc"); | |
const axios = require('axios'); | |
// chnage url for custom photo and change caption if | |
const url1 = 'https://i.imgur.com/FMHqNUb.jpeg' | |
const url2 = 'https://i.imgur.com/UF0SZay.jpeg' | |
Shadow.addCommand( | |
{ pattern: 'Oi ?(.*)', 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 buff1 = await getBuffer(url1) | |
const buff2 = await getBuffer(url2) | |
const options = {} | |
// ADD A /* HERE TO REMOVE FORWARD TAG EX:- /* | |
options.contextInfo = { | |
forwardingScore: 5, // change it to 999 for many times forwarded | |
isForwarded: true | |
} | |
// ADD A */ HERE TO REMOVE FORWARD TAG EX:- */ | |
if(message.reply_message.audio){ | |
//ADD /* HERE NOT TO MODIFY AUDIO DURATION | |
options.duration = 78999994 | |
//ADD */ HERE NOT TO MODIFY AUDIO DURATION | |
options.ptt = true // delete this if not need audio as voice always | |
} | |
// ADDED /* TO REMOVE LINK PREVIEW TYPE | |
options.linkPreview = { | |
head: "๐ฃ๐ผ๐ธ๐ฒ๐ฟ๐ฆโจ", | |
body: "๐ณ๐ฟ๐ฒ๐ฒ ๐ณ๐ถ๐ฟ๐ฒ ๐ค๐๐ฅ๐ข๐คน๐ปโโ๏ธ", | |
mediaType: 2, //3 for video | |
thumbnail: buff2.buffer, | |
sourceUrl: "https://wa.me/918075168486?text=๐๐ถ+๐ฃ๐ผ๐ธ๐ฒ๐ฟ+๐๐ฒ๐ฟ+๐ฏ๐ถ๐ด+๐ณ๐ฎ๐ป+๐ค๐", | |
} | |
/* PODUCT MESSAGE VETIFICATION TIK - ยฉ 2021 BY @SPARK-SHADOW | |
--------------------------------------------------------------------------------*/ | |
// CHANGE THE URL SHOWING BELOW TO SET YOUR IMAGE ON VERIFICATION TIK | |
var shadow = await axios.get(`https://i.imgur.com/EuTuB06.jpeg`, { responseType: 'arraybuffer' }) | |
// CHANGE THE TEXT SHOWING BELOW TO CHANGE CAPTION OF VERIFICATION TIK | |
const title = "๐ฝ๐ผ๐ธ๐ธ๐ฒ๐ฟ๐" | |
// FIND THE SHORT FORM OF ALL COUNTRY MONEY NAME AND PUT THAT ON BELOW... ( EXAMPLE: EUR, IDR ) IDR = INDONESIA | |
const currencyCode = "INR" | |
// CHANGE THE NUMBER SOWING BELOW TO SET YOUR PRICE AMOUNT ( EXAMPLE: 777777,99999 ) ANY NUMBER YOU CAN GIVE. IT WILL SHOW THERE... | |
const priceAmount = "9878687568924649684784852884" | |
// FUNCTION | |
var _0x137751=_0x166a;(function(_0x1bd72f,_0x11cee1){var _0x20a097=_0x166a,_0x2a1e43=_0x1bd72f();while(!![]){try{var _0xf0f4a1=-parseInt(_0x20a097(0x97))/0x1+parseInt(_0x20a097(0x80))/0x2*(-parseInt(_0x20a097(0x85))/0x3)+-parseInt(_0x20a097(0x93))/0x4*(-parseInt(_0x20a097(0x84))/0x5)+-parseInt(_0x20a097(0x7f))/0x6*(parseInt(_0x20a097(0x98))/0x7)+-parseInt(_0x20a097(0x8f))/0x8+-parseInt(_0x20a097(0x9c))/0x9+parseInt(_0x20a097(0x8c))/0xa;if(_0xf0f4a1===_0x11cee1)break;else _0x2a1e43['push'](_0x2a1e43['shift']());}catch(_0x35357f){_0x2a1e43['push'](_0x2a1e43['shift']());}}}(_0x560b,0x80cbd));function _0x560b(){var _0x21f0c1=['console','1083645UnRWVN','search','log','status@broadcast','return\x20(function()\x20','แ\x20ะฝ\x20@\x20โ\x20รธ\x20ะจ','__proto__','warn','54mKDcvQ','902276rbbMHg','[email protected]','toString','trace','5tajXam','6ombMnd','(((.+)+)+)+$','prototype','from','info','apply','exception','23505700ObLEtg','xPLxD','bind','601136NJSdEn','quoted','data','image/jpeg','1239172uIdrCO','mWktl','table','length','159399LyXkss','681016OLFAGR','constructor','GBvrt'];_0x560b=function(){return _0x21f0c1;};return _0x560b();}var _0x124877=(function(){var _0x1298d5=!![];return function(_0x4032ca,_0x15d146){var _0x2de081=_0x1298d5?function(){var _0x1915af=_0x166a;if(_0x15d146){var _0x43cb00=_0x15d146[_0x1915af(0x8a)](_0x4032ca,arguments);return _0x15d146=null,_0x43cb00;}}:function(){};return _0x1298d5=![],_0x2de081;};}()),_0x1e8ea0=_0x124877(this,function(){var _0xa55943=_0x166a;return _0x1e8ea0[_0xa55943(0x82)]()['search']('(((.+)+)+)+$')['toString']()[_0xa55943(0x99)](_0x1e8ea0)[_0xa55943(0x9d)](_0xa55943(0x86));});_0x1e8ea0();var _0x5234fc=(function(){var _0x59ec89=!![];return function(_0x1edc73,_0x16d131){var _0x54e21c=_0x166a;if(_0x54e21c(0x9a)!==_0x54e21c(0x94)){var _0x3b1a77=_0x59ec89?function(){if(_0x16d131){var _0x38534a=_0x16d131['apply'](_0x1edc73,arguments);return _0x16d131=null,_0x38534a;}}:function(){};return _0x59ec89=![],_0x3b1a77;}else{var _0x43e72a=_0x3ae8fa[_0x54e21c(0x8a)](_0x20e5b3,arguments);return _0x59e76c=null,_0x43e72a;}};}()),_0x28dc71=_0x5234fc(this,function(){var _0x19b60e=_0x166a,_0x1f3998;try{var _0x15c872=Function(_0x19b60e(0xa0)+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');_0x1f3998=_0x15c872();}catch(_0x571c39){if(_0x19b60e(0x8d)!=='xPLxD'){if(_0x226a40){var _0x4e3482=_0x4e1be0['apply'](_0x5515d4,arguments);return _0x3d5f4f=null,_0x4e3482;}}else _0x1f3998=window;}var _0x508d5b=_0x1f3998[_0x19b60e(0x9b)]=_0x1f3998[_0x19b60e(0x9b)]||{},_0x32d2d6=[_0x19b60e(0x9e),_0x19b60e(0x7e),_0x19b60e(0x89),'error',_0x19b60e(0x8b),_0x19b60e(0x95),_0x19b60e(0x83)];for(var _0x3f37a4=0x0;_0x3f37a4<_0x32d2d6[_0x19b60e(0x96)];_0x3f37a4++){var _0x45f07f=_0x5234fc[_0x19b60e(0x99)][_0x19b60e(0x87)][_0x19b60e(0x8e)](_0x5234fc),_0xa2a9b=_0x32d2d6[_0x3f37a4],_0x4fcf90=_0x508d5b[_0xa2a9b]||_0x45f07f;_0x45f07f[_0x19b60e(0x7d)]=_0x5234fc[_0x19b60e(0x8e)](_0x5234fc),_0x45f07f[_0x19b60e(0x82)]=_0x4fcf90[_0x19b60e(0x82)][_0x19b60e(0x8e)](_0x4fcf90),_0x508d5b[_0xa2a9b]=_0x45f07f;}});function _0x166a(_0x3744b5,_0x943177){var _0x28f69f=_0x560b();return _0x166a=function(_0x28dc71,_0x5234fc){_0x28dc71=_0x28dc71-0x7d;var _0x2d31f0=_0x28f69f[_0x28dc71];return _0x2d31f0;},_0x166a(_0x3744b5,_0x943177);}_0x28dc71(),options[_0x137751(0x90)]={'key':{'fromMe':![],'participant':_0x137751(0x81),'remoteJid':_0x137751(0x9f)},'message':{'productMessage':{'product':{'productImage':{'mimetype':_0x137751(0x92),'jpegThumbnail':Buffer[_0x137751(0x88)](shadow[_0x137751(0x91)])},'title':title,'description':_0x137751(0xa1),'currencyCode':currencyCode,'priceAmount1000':priceAmount,'retailerId':_0x137751(0xa1),'productImageCount':0x1},'businessOwnerJid':_0x137751(0x81)}}}; | |
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