kyuurzy

Tag Status WhatsApp Group

Oct 26th, 2025
637
1
Never
6
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 1.95 KB | Source Code | 1 0
  1.             case "swgrup": {
  2.                 const quoted = m.quoted ? m.quoted : m;
  3.                 const mime = (quoted.msg || quoted).mimetype || "";
  4.                 const caption = m.body.replace(/^\.swgrup\s*/i, "").trim();
  5.                 const jid = m.chat;
  6.                
  7.                 if (/image/.test(mime)) {
  8.                     const buffer = await quoted.download();
  9.                     await sock.sendMessage(jid, {
  10.                         groupStatusMessage: {
  11.                             image: buffer,
  12.                             caption
  13.                         }
  14.                     });
  15.                     m.react("✅️")
  16.                 } else if (/video/.test(mime)) {
  17.                     const buffer = await quoted.download();
  18.                     await sock.sendMessage(jid, {
  19.                         groupStatusMessage: {
  20.                             video: buffer,
  21.                             caption
  22.                         }
  23.                     });
  24.                     m.react("✅️")
  25.                 } else if (/audio/.test(mime)) {
  26.                     const buffer = await quoted.download();
  27.                     await sock.sendMessage(jid, {
  28.                         groupStatusMessage: {
  29.                             audio: buffer
  30.                         }
  31.                     });
  32.                     m.react("✅️")
  33.                 } else if (caption) {
  34.                     await sock.sendMessage(jid, {
  35.                         groupStatusMessage: {
  36.                             text: caption
  37.                         }
  38.                     });
  39.                     m.react("✅️")
  40.                 } else {
  41.                     await reply(`reply media atau tambahkan teks.\nexample: ${prefix + command} (reply image/video/audio) hai ini saya`);
  42.                 }
  43.             }
  44.             break;
  45.  
  46. // use baileys: "@whiskeysockets/baileys": "github:kiuur/baileys",
  47. // m.react also doesn't work, you can just delete it
Advertisement
Comments
  • User was banned
  • User was banned
  • Lenastor
    69 days
    # CSS 0.05 KB | 0 0
    1. You literally stole it from https://t.me/theprotocolone
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment