New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@rexzlys/wbails

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rexzlys/wbails

WhatsApp Modified By Ryexz

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Modified Whatsapp-API

Usage

"depencies": {
  "@whiskeysockets/baileys": "npm:@zeppeliorg/wbails"
}

Import

const {
  default:makeWASocket,
  // Other Options 
} = require('@whiskeysockets/baileys');

How To Connect To Whatsapp

With QR Code

const {
  default: makeWASocket
} = require('@whiskeysockets/baileys');

const client = makeWASocket({
  browser: ['Ubuntu', 'Chrome', '20.00.1'],
  printQRInTerminal: true
})

Connect With Number

const {
  default: makeWASocket,
  fetchLatestWAWebVersion
} = require('@whiskeysockets/baileys');

const client = makeWASocket({
  browser: ['Ubuntu', 'Chrome', '20.00.1'],
  printQRInTerminal: false,
  version: fetchLatestWAWebVersion()
  // Other options
});

const number = "628XXXXX";
const code = await client.requestPairingCode(number.trim) /* Use : (number, "YYYYYYYY") for custom-pairing */

console.log("Ur pairing code : " + code)

Sending messages

send orderMessage

const fs = require('fs');
const ZeppImg = fs.readFileSync('./ZeppImage');

await client.sendMessage(m.chat, {
  thumbnail: ZeppImg,
  message: "Gotta get a grip",
  orderTitle: "7eppeli-Corporation",
  totalAmount1000: 72502,
  totalCurrencyCode: "IDR"
}, { quoted:m })

send pollResultSnapshotMessage

await client.sendMessage(m.chat, {
  pollResultMessage: {
    name: "7eppeli-Corporation",
    options: [
      {
        optionName: "poll 1"
      },
      {
        optionName: "poll 2"
      }
    ],
    newsletter: {
      newsletterName: "7eppeli | Killer Queen Information",
      newsletterJid: "1@newsletter"
    }
  }
})

send productMessage

await client.relayMessage(m.chat, {
  productMessage {
    title: "7eppeli.pdf",
    description: "zZZ...",
    thumbnail: { url: "./ZeppImage" },
    productId: "EXAMPLE_TOKEN",
    retailerId: "EXAMPLE_RETAILER_ID",
    url: "https://t.me/YuukeyD7eppeli",
    body: "Nak Tido",
    footer: "Footer",
    buttons: [
      {
        name: "cta_url",
        buttonParamsJson: "{\"display_text\":\"7eppeli-Pdf\",\"url\":\"https://t.me/YuukeyD7eppeli\"}"
      }
    ],
    priceAmount1000: 72502,
    currencyCode: "IDR"
  }
})

send member label

await client.sendMessage(m.chat, {
  groupLabel: {
    labelText: "Tag anggota tercantum di sini"
  }
})

send message to members in group

await client.sendMessageMembers(m.chat, {
  extendedTextMessage: {
    text: "save aku 7epsync"
  }
}, {})

Simple sendMessage

send text

await client.sendText(m.chat, "7eppsynC", {
  contextInfo: {
    mentionedJid: [m.chat]
  }
}, {
  key: {
    remoteJid: "status@broadcast",
    participant: m.sender,
    fromMe: true
  },
  message: {
    conversation: "\0"
  }
})

send image

await client.sendImage(m.chat, { url: "./zepy.jpg" }, "7eppsynC", {
  contextInfo: {
    mentionedJid: [m.chat]
  }
}, {
  key: {
    remoteJid: "status@broadcast",
    participant: m.sender,
    fromMe: true
  },
  message: {
    conversation: "\0"
  }
})

send video

await client.sendVideo(m.chat, { url: "./zepy.mp4" }, "7eppsynC", {
  contextInfo: {
    mentionedJid: [m.chat]
  }
}, {
  key: {
    remoteJid: "status@broadcast",
    participant: m.sender,
    fromMe: true
  },
  message: {
    conversation: "\0"
  }
})

send audio

await client.sendAudio(m.chat, { url: "./zepy.mp3" }, {
  contextInfo: {
    mentionedJid: [m.chat]
  }
}, {
  key: {
    remoteJid: "status@broadcast",
    participant: m.sender,
    fromMe: true
  },
  message: {
    conversation: "\0"
  }
})

send location

await client.sendLocation(m.chat, "7eppsynC", 90.0, 90.0, "https://t.me/XzC_Info", "1234567890", {
  contextInfo: {
    mentionedJid: [m.chat]
  }
}, {
  key: {
    remoteJid: "status@broadcast",
    participant: m.sender,
    fromMe: true
  },
  message: {
    conversation: "\0"
  }
})

send polling

await client.sendPoll(m.chat, "7eppsynC", ["1", "2", "3"], true, {
  contextInfo: {
    mentionedJid: [m.chat]
  }
}, {
  key: {
    remoteJid: "status@broadcast",
    participant: m.sender,
    fromMe: true
  },
  message: {
    conversation: "\0"
  }
})

send quiz

await client.sendQuiz(m.chat, "7eppsynC", ["1", "2", "3"], "2", {
  contextInfo: {
    mentionedJid: [m.chat]
  }
}, {
  key: {
    remoteJid: "status@broadcast",
    participant: m.sender,
    fromMe: true
  },
  message: {
    conversation: "\0"
  }
})

send status mention

await client.statusMention(m.chat, {
  extendedTextMessage: {
    text: "7eppsynC"
  }
})

Follow https://t.me/XzC_Info kalau mau liat type message yg lain :v

Keywords

whatsapp-baileys

FAQs

Package last updated on 29 Apr 2026

Related posts