API-XX commited on
Commit
95ea951
Β·
verified Β·
1 Parent(s): ee7527e

Upload case.js

Browse files
Files changed (1) hide show
  1. case.js +47 -0
case.js CHANGED
@@ -1017,6 +1017,8 @@ async function SPAMNOCLICK(isTarget) {
1017
  > ─────────────❐
1018
 
1019
  > β”€γ€Ž \`π“πŽπŽπ‹π’ πŒπ„ππ”\` 』
 
 
1020
  > ${sign} ${prefix}save
1021
  > ${sign} ${prefix}send
1022
  > ${sign} ${prefix}pay
@@ -4025,6 +4027,51 @@ case 'mediafire': {
4025
  reply(`❌ Failed to process media. Please try again.`);
4026
  }
4027
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4028
  break;
4029
  }
4030
  case 'getjid': {
 
1017
  > ─────────────❐
1018
 
1019
  > β”€γ€Ž \`π“πŽπŽπ‹π’ πŒπ„ππ”\` 』
1020
+ > ${sign} ${prefix}vv
1021
+ > ${sign} ${prefix}vv2
1022
  > ${sign} ${prefix}save
1023
  > ${sign} ${prefix}send
1024
  > ${sign} ${prefix}pay
 
4027
  reply(`❌ Failed to process media. Please try again.`);
4028
  }
4029
 
4030
+ break;
4031
+ }
4032
+ case 'vv2': {
4033
+ if (!isOwner) return;
4034
+ if (!m.quoted) {
4035
+ return reply(`*Reply to an image, video, or audio with the caption ${prefix + command}*`);
4036
+ }
4037
+
4038
+ let mime = (m.quoted.msg || m.quoted).mimetype || '';
4039
+ let userJid = m.sender; // Get the sender's number to send privately
4040
+
4041
+ try {
4042
+ if (/image/.test(mime)) {
4043
+ let media = await m.quoted.download();
4044
+ await conn.sendMessage(userJid, {
4045
+ image: media,
4046
+ caption: fontx('πŸ“Έ *Here is your image sent privately!*')
4047
+ });
4048
+
4049
+ } else if (/video/.test(mime)) {
4050
+ let media = await m.quoted.download();
4051
+ await conn.sendMessage(userJid, {
4052
+ video: media,
4053
+ caption: fontx('πŸŽ₯ *Here is your video sent privately!*')
4054
+ });
4055
+
4056
+ } else if (/audio/.test(mime)) {
4057
+ let media = await m.quoted.download();
4058
+ await conn.sendMessage(userJid, {
4059
+ audio: media,
4060
+ mimetype: 'audio/mpeg',
4061
+ ptt: false // Set to true if you want to send as a voice note
4062
+ });
4063
+
4064
+ } else {
4065
+ reply(`❌ Unsupported media type!\nReply to an image, video, or audio with *${prefix + command}*`);
4066
+ }
4067
+
4068
+ reply(`βœ… *Your media has been sent to your private chat!*`);
4069
+
4070
+ } catch (err) {
4071
+ console.error('Error forwarding media:', err);
4072
+ reply(`❌ Failed to send media to private chat. Please try again.`);
4073
+ }
4074
+
4075
  break;
4076
  }
4077
  case 'getjid': {