Venom is a high-performance system developed with JavaScript to create a bot for WhatsApp, support for creating any interaction, such as customer service, media
Venom is a high-performance system developed with JavaScript to create a bot for WhatsApp, support for creating any interaction, such as customer service, media
The next generation of WhatsApp automation. Completely rebuilt.
Venom is not just another library. It's a complete automation platform designed from the ground up for performance, reliability, and developer experience.
Built on top of proven technologies, Venom gives you full control over WhatsApp Web through a clean, intuitive API — whether you're building a simple chatbot or a large-scale enterprise solution.
Blazing fast message processing
Session persistence out of the box
Modular architecture — extend with ease
Multi-session support for scaling
Battle-tested in production by thousands of developers Rewritten from scratch — cleaner, simpler codebase
Pure Puppeteer — no puppeteer-extra, no stealth plugins
Updated WhatsApp Web modules (WAWebSocketModel, WAWebConnModel, etc.)
Chromium auto-download on npm install
Node.js 18+ required
TypeScript 5.7+ with strict types
Pino logger — fast, structured logging
Only 6 source files — down from 83+Requires Node.js 18+. Chromium is downloaded automatically on install.
npm install venom-botnpm install https://github.com/orkestral/venom/releases/download/nightly/venom-bot-nightly.tgznpm install github:orkestral/venomGet a fully functional bot running in under 30 seconds.
import { create } from 'venom-bot';
create({ session: 'venom-bot' }).then((client) => {
client.onMessage(async (message) => {
if (message.body === 'hello') {
await client.sendText(message.from, 'Hey there! I\'m running on Venom.');
}
});
});Scan the QR code that appears in your terminal. Done — you're live.
[!TIP] Sessions are saved automatically. No need to re-scan on every restart.
Send anything. Text, images, videos, documents, audio, stickers, locations, polls — you name it.
…// Send with typing indicator
await client.sendTextViaTyping(chatId, 'This feels more natural...');
// Send photo/video with typing simulation
await client.sendPhotoVideoViaTyping(chatId, './sunset.jpg', 'Beautiful sunset');
// Reply to a message
await client.reply(chatId, 'Got it!', originalMessageId);
// Forward messages
await client.forwardMessages(chatId, [messageId1, messageId2]);
// Mention users
await client.sendMentioned(chatId, 'Hey @5511999999999!', ['5511999999999']);const chats = await client.getAllChats();
const contacts = await client.getAllContacts();
const unread = await client.getUnreadMessages();
const messages = await client.getAllMessagesInChat(chatId);
const profile = await client.getProfilePicFromServer(chatId);
const status = await client.checkNumberStatus(chatId);
const blocked = await client.getBlockList();…await client.setProfileStatus('Building something amazing ');
await client.setProfileName('Venom Bot');
await client.setProfilePic('./avatar.jpg');
await client.getHostDevice();
await client.getConnectionState();
await client.getBatteryLevel();
await client.isConnected();
await client.getWAVersion();await client.sendSeen(chatId);
await client.startTyping(chatId);
await client.deleteChat(chatId);
await client.clearChatMessages(chatId);
await client.archiveChat(chatId, true);
await client.pinChat(chatId, true);
await client.blockContact(chatId);
await client.unblockContact(chatId);
await client.sendMute(chatId, 30, 'minutes');Build reactive bots with powerful event listeners.
…Download any media received — images, videos, audio, documents. Fast.
import * as fs from 'fs';
import * as mime from 'mime-types';
client.onMessage(async (message) => {
if (message.isMedia || message.isMMS) {
const buffer = await client.decryptFile(message);
const fileName = `file.${mime.extension(message.mimetype)}`;
fs.writeFileSync(fileName, buffer);
}
});Full control over every aspect of the browser and session.
…| Status | Description |
|---|---|
isLogged |
Already authenticated |
notLogged |
Awaiting QR scan |
browserClose |
Browser closed |
qrReadSuccess |
QR scanned successfully |
qrReadFail |
QR scan failed |
autocloseCalled |
Auto-close triggered |
desconnectedMobile |
Phone disconnected |
serverClose |
WebSocket closed |
chatsAvailable |
Chat list loaded |
deviceNotConnected |
Phone not connected |
successChat |
Chat ready |
waitForLogin |
Waiting for login |
waitChat |
Loading chats |
Keep your bot running and handle disconnections gracefully.
client.onStateChange((state) => {
if (state === 'CONFLICT') client.useHere(); // reclaim session
if (state === 'UNPAIRED') console.log('Session expired');
});
// Graceful shutdown
process.on('SIGINT', () => client.close());[!NOTE] Always call
client.close()instead of killing the process — this ensures the session is saved properly.
create({
session: 'custom-version',
webVersion: '2.2402.5' // pinned version
});Available versions: wppconnect-team/wa-version
# Clone
git clone https://github.com/orkestral/venom.git && cd venom
# Install dependencies
npm install
# Build individual modules
npm run build:wapi
npm run build:middleware
npm run build:jsQR
npm run build:venom
# Or build everything at once
npm run buildThe complete documentation is available at orkestral.github.io/venom.
Every method, every parameter, every edge case — fully documented.
We love contributions. Open an issue, submit a PR, or help improve the docs.
For major changes, please open an issue first to discuss the approach.
Orkestral — by vynect
Silicon Valley, California
Erro ao iniciar o bot: Error no open browser....
index.js code paragraphy for the one message funcion is not returning results, but onMessage seems to be working well.
onAck Not Triggered
venom-bot do not start and show QRcode
S6STEME
Get files from WhatsApp
Create group function כשןך אם רקדפםמדק
getAllChatsGroups() always return empty
Venom: Send Button Option Not Working throwing errors
Error: Requesting main frame too early!