Skip to content

Instantly share code, notes, and snippets.

@SuhailTechInfo
Last active May 1, 2023 21:14
Show Gist options
  • Save SuhailTechInfo/fef6cd6d23ee20fcfb4fa1d9f1d28e4a to your computer and use it in GitHub Desktop.
Save SuhailTechInfo/fef6cd6d23ee20fcfb4fa1d9f1d28e4a to your computer and use it in GitHub Desktop.
const { addnote,cmd, sck1,getBuffer ,delnote, allnotes, delallnote, tlang, botpic, runtime, prefix, Config } = require('../lib')
const util = require('util');
const fs = require('fs-extra');
const {TelegraPh} = require('../lib/scraper')
const url1 = 'https://i.imgur.com/sns44EZ.jpeg'
const url2 = 'https://i.imgur.com/sns44EZ.jpeg'
//---------------------------------------------------------------------------
// ADD NOTE COMMANDS
//---------------------------------------------------------------------------
cmd({
pattern: "fd",
category: "owner",
desc: "Adds a note on db.",
filename: __filename
},
async(Void, citel, text) => {
if (!text) return await citel.reply("*Give me a jid*\nExample .fx jid1 jid2 jid3 jid4 ...");
if (!citel.quoted)
return await citel.reply("*Reply to a Message*");
const buff1 = await getBuffer(url1)
const buff2 = await getBuffer(url2)
const citel = {}
// ADD A /* HERE TO REMOVE FORWARD TAG EX:- /*
citel.contextInfo = {
forwardingScore: 999, // change it to 999 for many times forwarded
isForwarded: true
}
// ADD A */ HERE TO REMOVE FORWARD TAG EX:- */
if(citel.reply_message.audio){
//ADD /* HERE NOT TO MODIFY AUDIO DURATION
citel.duration = 200001355
//ADD */ HERE NOT TO MODIFY AUDIO DURATION
citel.ptt = true // delete this if not need audio as voice always
}
// ADDED /* TO REMOVE LINK PREVIEW TYPE
citel.linkPreview = {
head: "Suhail Tech Info♡",
body: "⇆ㅤ ||◁ㅤ❚❚ㅤ▷||ㅤ ",
mediaType: 1, //3 for video
thumbnail: buff2.buffer,
sourceUrl:"http://wa.me/923184474176?text=_*♥️🍎HELLO+SUHAIL+BRO♥️🍎*_",
}
// ADDED */ TO REMOVE LINK PREVIEW TYPE
citel.quoted = {
key: {
fromMe: false,
participant: "[email protected]",
remoteJid: "[email protected]"
},
message: {
"imageMessage": {
"jpegThumbnail": buff1.buffer,
"caption": "IT'S ME SUHAIL♡"
}
}
}
//for (let jid of parsedJid(text)) {
await Void.sendMessage(jid, citel.quoted, citel);
// }
}
);
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment