text: /* 
  
  Sew Queen Whatsapp Bot                       
  
  Telegram: https://t.me/RavinduManoj
  Facebook: https://www.facebook.com/ravindu.manoj.79
  Licensed under the  GPL-3.0 License;
  
  Coded By Ravindu Manoj
  
  */ 
  let DataPack = require('sew-queen-pro');
  let SewQueen = require('sew-queen-pro/sources/dc/handler');
  let Details = require('sew-queen-pro/sources/dc/Details');
  let { MessageType, MessageOptions, Mimetype, GroupSettingChange, ChatModification } = require('@ravindu01manoj/sew-queen-web');
  let fs = require('fs');
  let os = require('os');
  let ffmpeg = require('fluent-ffmpeg');
  let exec = require('child_process').exec;
  let axios = require('axios');
  let got = require('got');
  let {execFile} = require('child_process');
  let cwebp = require('cwebp-bin');
  let DataHelp = DataPack.constdata
  let WorkType = Details.WORKTYPE == 'public' ? false : true
  
  const DATA = DataHelp.dataGet('conventer');
  
      SewQueen['IntroduceCMD']({pattern: 'tblend ?(.*)', fromMe: WorkType, desc: DATA.T_DESC}, (async (message, input) => {    
  
          if (message.reply_message === false) return await message.client.sendMessage(message.jid,DATA.MP4TOAUDİO_NEEDREPLY, MessageType.text);
  
          if (message.repy_message && input[1] === '') return await message.client.sendMessage(message.jid, DATA.T_NOT, MessageType.text);
  
          if (input[1] === 'dodge') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=dodge')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Dodge TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'or') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=or')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Or TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'multiply') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=multiply')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Multiply TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'grainmerge') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=grainmerge')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Grainmerge TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'and') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=and')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - And TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'burn') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=burn')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Burn TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'difference') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=difference')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Difference TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'grainextract') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=grainextract')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Grainextract TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'divide') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=divide')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Divide TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'xor') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=xor')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Xor TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'hardmix') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=hardmix')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Hardmix TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
          }
          else if (input[1] === 'negation') {
  
              var downloading = await message.client.sendMessage(message.jid,'```Editing..```',MessageType.text);
              var location = await message.client.downloadAndSaveMediaMessage({
                  key: {
                      remoteJid: message.reply_message.jid,
                      id: message.reply_message.id
                  },
                  message: message.reply_message.data.quotedMessage
              });
  
              ffmpeg(location)
                  .videoFilters('tblend=all_mode=negation')
                  .format('mp4')
                  .save('output.mp4')
                  .on('end', async () => {
                      await message.sendMessage(fs.readFileSync('output.mp4'), MessageType.video, {caption: Details.CPK + ' - Negation TBlend'});
                  });
              return await message.client.deleteMessage(message.jid, {id: downloading.key.id, remoteJid: message.jid, fromMe: true})
  
          }
          else {
              return await message.client.sendMessage(message.jid,DATA.T_FALSE, MessageType.text);
          }
      }));
  