Documentation Index
Fetch the complete documentation index at: https://mintlify.com/WhiskeySockets/Baileys/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Baileys is available as an npm package and can be installed using your preferred package manager.Requirements
Before installing Baileys, ensure you have:- Node.js 20.0.0 or higher - Required for running Baileys
- A package manager (npm, yarn, or pnpm)
Install the stable version
The stable version is recommended for production use:Install the edge version
The edge version includes the latest features and fixes, but may be less stable:Import in your project
Once installed, import Baileys in your TypeScript or JavaScript files:Optional dependencies
Baileys has several optional peer dependencies that enable additional functionality:Link preview generation
To enable automatic link preview generation in messages:Media thumbnail generation
For automatic thumbnail generation in image and sticker messages:Audio decoding
For advanced audio processing:Verify installation
To verify that Baileys is installed correctly, create a simple test file:test.ts
Next steps
Quickstart guide
Build your first WhatsApp bot with Baileys
API documentation
Explore all available methods and types