Socket
Book a DemoInstallSign in
Socket

zerobail

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zerobail

WhatsApp API

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

🌌 zerobail - Baileys Mod by Zero-StarX

Anime Banner

✨ ZeroBail?

ZeroBail adalah library modifikasi dari whiskeysockets/baileys
yang udah di-upgrade sama ZeroStarX biar lebih gampang bikin WhatsApp Bot full fitur.

🚀 Fitur utama:

  • ✅ Buttons (type 1, list, reply, reply list section)
  • ✅ Kirim media (gambar, video, audio, ptt)
  • ✅ Newsletter (add, follow, delete)
  • ✅ Dibangun di atas whiskeysockets/baileys versi terbaru

Install

Install in package.json:

"dependencies": {
    "baileys": "npm:zerostarx/zerobail"
}

or install in terminal:

npm install baileys@npm:zerostarx/zerobail

Then import the default function in your code:

// type esm
import makeWASocket from 'baileys'
// type cjs
const { default: makeWASocket } = require("baileys")

✨ Fitur Tambahan & Peningkatan

📌 Klik untuk lihat daftar fitur
FiturDeskripsi
💬 Kirim Pesan ke ChannelMendukung pengiriman teks & media langsung ke channel WhatsApp.
🔘 Tombol & Pesan InteraktifSupport button message & pesan interaktif di WhatsApp Messenger & WhatsApp Business.
🖼️ Kirim Album (Grouped Media)Bisa kirim banyak gambar sekaligus dalam bentuk album, lebih rapi & keren.
👥 Group dengan LID SupportDukungan penuh untuk group @lid, kompatibel dengan format terbaru WhatsApp.
🤖 Ikon AI di PesanBisa custom tampilan pesan dengan ikon AI biar lebih modern.
🖼️ Foto Profil Full-SizeUpload foto profil tanpa crop, kualitas full & lebih bagus.
🔑 Custom Pairing CodeBisa bikin pairing code custom sesuai keinginan, lebih praktis & aman.
🛠️ Perbaikan LibsignalLog lebih bersih & informatif, bikin proses development lebih nyaman.

ℹ️ Fitur lain akan terus ditambahkan di update berikutnya 🚀

📢 Newsletter Management

📌 Klik untuk lihat contoh kode
  • Ambil info newsletter
const metadata = await sock.newsletterMetadata("invite", "xxxxx")
// atau
const metadata = await sock.newsletterMetadata("jid", "abcd@newsletter")
console.log(metadata)
  • Update deskripsi newsletter
await sock.newsletterUpdateDescription("abcd@newsletter", "Deskripsi Baru")
  • Update nama newsletter
await sock.newsletterUpdateName("abcd@newsletter", "Nama Baru")
  • Update foto profil newsletter
await sock.newsletterUpdatePicture("abcd@newsletter", buffer)
  • Hapus foto profil newsletter
await sock.newsletterRemovePicture("abcd@newsletter")
  • Unmute notifikasi newsletter
await sock.newsletterUnmute("abcd@newsletter")
  • Mute notifikasi newsletter
await sock.newsletterMute("abcd@newsletter")
  • Buat newsletter baru
const metadata = await sock.newsletterCreate("Nama Newsletter")
console.log(metadata)
  • Hapus newsletter
await sock.newsletterDelete("abcd@newsletter")
  • Follow newsletter
await sock.newsletterFollow("abcd@newsletter")
  • Unfollow newsletter
await sock.newsletterUnfollow("abcd@newsletter")
Kirim reaction ke pesan newsletter
// jid, id pesan & emoticon
// Cara dapat ID: copy URL pesan dari channel
// Contoh: https://whatsapp.com/channel/xxxxx/175
// Angka terakhir adalah ID
const id = "175"
await sock.newsletterReactMessage("abcd@newsletter", id, "🥳")

Button and Interactive Message Management

Show Examples
  • To send button with text
const buttons = [
  { buttonId: 'id1', buttonText: { displayText: 'Button 1' }, type: 1 },
  { buttonId: 'id2', buttonText: { displayText: 'Button 2' }, type: 1 }
]

const buttonMessage = {
    text: "Hi it's button message",
    footer: 'Hello World',
    buttons,
    headerType: 1
}

await sock.sendMessage(id, buttonMessage, { quoted: null })
  • To send button with image
const buttons = [
  { buttonId: 'id1', buttonText: { displayText: 'Button 1' }, type: 1 },
  { buttonId: 'id2', buttonText: { displayText: 'Button 2' }, type: 1 }
]

const buttonMessage = {
    image: { url: "https://example.com/abcd.jpg" }, // image: buffer or path
    caption: "Hi it's button message with image",
    footer: 'Hello World',
    buttons,
    headerType: 1
}

await sock.sendMessage(id, buttonMessage, { quoted: null })

  • To send button with video
const buttons = [
  { buttonId: 'id1', buttonText: { displayText: 'Button 1' }, type: 1 },
  { buttonId: 'id2', buttonText: { displayText: 'Button 2' }, type: 1 }
]

const buttonMessage = {
    video: { url: "https://example.com/abcd.mp4" }, // video: buffer or path
    caption: "Hi it's button message with video",
    footer: 'Hello World',
    buttons,
    headerType: 1
}

await sock.sendMessage(id, buttonMessage, { quoted: null })
  • To send interactive message
const interactiveButtons = [
     {
        name: "quick_reply",
        buttonParamsJson: JSON.stringify({
             display_text: "Quick Reply",
             id: "ID"
        })
     },
     {
        name: "cta_url",
        buttonParamsJson: JSON.stringify({
             display_text: "Tap Here!",
             url: "https://www.example.com/"
        })
     },
     {
        name: "cta_copy",
        buttonParamsJson: JSON.stringify({
             display_text: "Copy Code",
             id: "12345",
             copy_code: "12345"
        })
     }
]

const interactiveMessage = {
    text: "Hello World!",
    title: "this is the title",
    footer: "this is the footer",
    interactiveButtons
}

await sock.sendMessage(id, interactiveMessage, { quoted: null })
  • To send interactive message with image
const interactiveButtons = [
     {
        name: "quick_reply",
        buttonParamsJson: JSON.stringify({
             display_text: "Quick Reply",
             id: "ID"
        })
     },
     {
        name: "cta_url",
        buttonParamsJson: JSON.stringify({
             display_text: "Tap Here!",
             url: "https://www.example.com/"
        })
     },
     {
        name: "cta_copy",
        buttonParamsJson: JSON.stringify({
             display_text: "Copy Code",
             id: "12345",
             copy_code: "12345"
        })
     }
]

const interactiveMessage = {
    image: { url: "https://example.com/abcd.jpg" }, // image: buffer or path
    caption: "this is the caption",
    title: "this is the title",
    footer: "this is the footer",
    interactiveButtons
}

await sock.sendMessage(id, interactiveMessage, { quoted: null })
  • To send interactive message with video
const interactiveButtons = [
     {
        name: "quick_reply",
        buttonParamsJson: JSON.stringify({
             display_text: "Quick Reply",
             id: "ID"
        })
     },
     {
        name: "cta_url",
        buttonParamsJson: JSON.stringify({
             display_text: "Tap Here!",
             url: "https://www.example.com/"
        })
     },
     {
        name: "cta_copy",
        buttonParamsJson: JSON.stringify({
             display_text: "Copy Code",
             id: "12345",
             copy_code: "12345"
        })
     }
]

const interactiveMessage = {
    video: { url: "https://example.com/abcd.mp4" }, // video: buffer or path
    caption: "this is the caption",
    title: "this is the title",
    footer: "this is the footer",
    interactiveButtons
}

await sock.sendMessage(id, interactiveMessage, { quoted: null })
  • To send list interactive
const interactiveButtons = [
  {
    name: "single_select",
    buttonParamsJson: JSON.stringify({
      title: "message",
      sections: [
        {
          title: "title",
          highlight_label: "label",
          rows: [
            {
              header: "HEADER",
              title: "TITLE",
              description: "DESCRIPTION",
              id: "YOUR ID"
            },
            {
              header: "HEADER",
              title: "TITLE",
              description: "DESCRIPTION",
              id: "YOUR ID"
            }
          ]
        }
      ]
    })
  }
];

const interactiveMessage = {
    text: "Hello World!",
    title: "this is the title",
    footer: "this is the footer",
    interactiveButtons
};

await sock.sendMessage(id, interactiveMessage, { quoted: null });

📸 Send Album Message

Kirim banyak media (foto/video) sekaligus dalam 1 pesan (album).

📌 Klik untuk lihat contoh kode
// Media bisa berupa URL, buffer, atau path lokal
const media = [
  {
    image: { url: "https://example.com/image.jpg" }
  },
  {
    image: await getBuffer("https://example.com/image.jpg")
  },
  {
    video: { url: "https://example.com/video.mp4" }
  }
]

await sock.sendMessage(id, { album: media, caption: "testing send album" }, { quoted: null })
  • 🤖 AI Message Icon Customization Tambah ikon AI di pesan WhatsApp untuk bikin tampilan lebih modern.
📌 Klik untuk lihat contoh kode
// Aktifkan ikon AI cukup dengan menambahkan parameter "ai: true"
await sock.sendMessage(id, { text: "Hello World", ai: true });
  • 🔑 Custom Pairing Code Generation Bikin pairing code WhatsApp sesuai keinginan (misalnya 8 digit alfanumerik)
📌 Klik untuk lihat contoh kode
if (usePairingCode && !sock.authState.creds.registered) {
    const phoneNumber = await question('Please enter your mobile phone number:\n');
    // Definisikan pairing code custom (contoh: 8 karakter)
    const customPairingCode = "ZEROSTR";
    const code = await sock.requestPairingCode(phoneNumber, customPairingCode);
    console.log(`Your Pairing Code: ${code?.match(/.{1,4}/g)?.join('-') || code}`);
}

🐛 Melaporkan Masalah

Kalau kamu nemu bug atau kendala saat menggunakan repository ini, silakan langsung buka issue baru di sini ya. 🙏

📝 Catatan

Selain modifikasi yang udah disebutkan di atas, semua fitur lainnya masih sama persis dengan repository original.
Cek repo asli di sini 👉 WhiskeySockets

Created By Zero - StarX ✨

Keywords

whatsapp

FAQs

Package last updated on 02 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.