
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@fahriofficial/baileys-pro
Advanced tools
WhatsApp API - Full Modif by Fahri - OfficiaL | No Limit, No Rules, Full Control!
Baileys WhatsApp API adalah library berbasis Node.js untuk berkomunikasi dengan WhatsApp Web tanpa perlu WebSocket tambahan. Ini adalah hasil modifikasi dari Whiskey Baileys agar lebih stabil dan mendukung lebih banyak tipe pesan.
Dikembangkan dengan performa tinggi untuk kebutuhan bot, otomatisasi pesan, dan integrasi aplikasi WhatsApp lainnya.
Repositori ini dikembangkan dan dikelola oleh Fahri - OfficiaL bersama para kontributor open-source lainnya.
Dukungan dan kontribusi dari komunitas sangat diapresiasi! 💖
Pastikan Node.js ≥ 14.0++ sudah terpasang, Kemudian jalankan perintah berikut di terminal:
npm install @fahriofficial/baileys-pro
Atau dengan Yarn:
yarn add @fahriofficial/baileys-pro
const { useMultiFileAuthState, makeWASocket } = require('@fahriofficial/baileys-pro');
const readline = require('readline');
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
const question = (q) => new Promise(res => rl.question(q, res));
async function start() {
const { state, saveCreds } = await useMultiFileAuthState('./session');
const usePairingCode = true;
const conn = makeWASocket({
auth: state,
printQRInTerminal: !usePairingCode,
keepAliveIntervalMs: 50000,
});
conn.ev.on('creds.update', saveCreds);
if (usePairingCode && !conn.authState.creds.registered) {
const phone = (await question('Enter Your Number Phone:\n')).replace(/\D/g, '');
rl.close();
try {
const code = await conn.requestPairingCode(phone);
console.log('Code Whatsapp:', code.match(/.{1,4}/g).join('-'));
} catch (e) {
console.log('Failed to get pairing code:', e.message);
}
}
conn.ev.on('connection.update', ({ connection, lastDisconnect }) => {
if (connection === 'close') {
const reason = lastDisconnect?.error?.output?.statusCode || 'Unknown';
console.log('Connection closed:', reason);
if ([401, 405].includes(reason)) {
console.log('Logged out, delete session folder to relogin');
} else if ([515, 428].includes(reason)) {
console.log('Restarting...');
start();
}
} else if (connection === 'open') {
console.log('Whatsapp connected');
}
});
conn.ev.on('messages.upsert', async (m) => {
if (m.type === 'notify') {
const msg = m.messages[0];
if (!msg.key.fromMe && msg.message) {
await conn.sendMessage(msg.key.remoteJid, { text: 'Hello there!' });
}
}
});
}
start();
| Fitur | Deskripsi |
|---|---|
sendMessage() | Mengirim pesan teks, gambar, video, dll. |
updateProfile() | Mengubah foto profil dan nama pengguna |
getChats() | Mendapatkan daftar chat pengguna |
groupParticipantsUpdate() | Menambahkan/menghapus anggota grup |
📖 Dokumentasi lengkap: Baileys API Docs
await sock.sendMessage(m.chat, {
text: "halo",
title: "tes",
footer: "© Fahri - OfficiaL - 2025",
interactiveButtons: [{
"name": "single_select",
"buttonParamsJson": "{\"title\":\"title\",\"sections\":[{\".menu\":\".play dj webito\",\"highlight_label\":\"label\",\"rows\":[{\"header\":\"header\",\"title\":\"title\",\"description\":\"description\",\"id\":\"id\"},{\"header\":\"header\",\"title\":\"title\",\"description\":\"description\",\"id\":\"id\"}]}]}"
},
{
"name": "cta_reply",
"buttonParamsJson": "{\"display_text\":\"quick_reply\",\"id\":\"message\"}"
},
{
"name": "cta_url",
"buttonParamsJson": "{\"display_text\":\"url\",\"url\":\"https://www.google.com\",\"merchant_url\":\"https://www.google.com\"}"
},
{
"name": "cta_call",
"buttonParamsJson": "{\"display_text\":\"call\",\"id\":\"message\"}"
},
{
"name": "cta_copy",
"buttonParamsJson": "{\"display_text\":\"copy\",\"id\":\"123456789\",\"copy_code\":\"message\"}"
},
{
"name": "cta_reminder",
"buttonParamsJson": "{\"display_text\":\"Recordatorio\",\"id\":\"message\"}"
},
{
"name": "cta_cancel_reminder",
"buttonParamsJson": "{\"display_text\":\"cta_cancel_reminder\",\"id\":\"message\"}"
},
{
"name": "address_message",
"buttonParamsJson": "{\"display_text\":\"address_message\",\"id\":\"message\"}"
},
{
"name": "send_location",
"buttonParamsJson": ""
}]
}, { quoted: m });
sock.sendMessage(m.chat, {
text: "Hello World !",
footer: "Fahri - OfficiaL",
buttons: [
{ buttonId: `.play`,
buttonText: {
displayText: 'ini button'
}, type: 1 }
],
headerType: 1,
viewOnce: true
},{ quoted: null })
sock.sendMessage(msg.key.remoteJid, {
text: "Isi Pesan",
title: "Judul",
subtitle: "Subjudul",
footer: "Footer",
viewOnce: true,
shop: 3,
id: "199872865193",
}, { quoted: m })
await sock.sendMessage(msg.key.remoteJid, {
pollResult: {
name: "Judul Polling",
votes: [
["Opsi 1", 10],
["Opsi 2", 10]
],
}
}, { quoted: m })
await sock.StatusMentions({ text: "Halo!" }, [
"123456789123456789@g.us",
"123456789@s.whatsapp.net",
])
await sock.sendMessage(msg.key.remoteJid, {
text: "Halo!",
footer: "Pesan Footer",
cards: [
{
image: { url: 'https://example.jpg' },
title: 'Judul Kartu',
caption: 'Keterangan Kartu',
footer: 'Footer Kartu',
buttons: [
{ name: "quick_reply", buttonParamsJson: JSON.stringify({ display_text: "Tombol Cepat", id: "ID" }) },
{ name: "cta_url", buttonParamsJson: JSON.stringify({ display_text: "Buka Link", url: "https://www.example.com" }) }
]
}
]
}, { quoted: m })
await sock.sendAlbumMessage(msg.key.remoteJid, [
{ image: { url: "https://example.jpg" }, caption: "Halo Dunia" },
{ video: { url: "https://example.mp4" }, caption: "Halo Dunia" }
], { quoted: m, delay: 2000 })
await sock.sendMessage(msg.key.remoteJid, { keep: message.key, type: 1, time: 86400 })
await sock.sendMessage(msg.key.remoteJid, { pin: message.key, type: 1, time: 86400 })
await sock.sendMessage(msg.key.remoteJid, {
groupInvite: {
subject: "Nama Grup",
jid: "1234@g.us",
text: "Undangan Grup",
inviteCode: "KODE",
inviteExpiration: 86400 * 3,
}
}, { quoted: m })
Kami menyambut kontribusi dari siapa saja! Jika ingin membantu:
💡 Punya ide keren? Silakan buat Issue di repository ini.
📩 Email: fahrioffc13@gmail.com 🌍 Website: Baileys API
🚀 Semoga kamu suka & semangat ngoding! �
FAQs
WhatsApp API - Full Modif by Fahri - OfficiaL | No Limit, No Rules, Full Control!
The npm package @fahriofficial/baileys-pro receives a total of 1 weekly downloads. As such, @fahriofficial/baileys-pro popularity was classified as not popular.
We found that @fahriofficial/baileys-pro demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.