This is a high-performance WhatsApp bot specifically optimized for Raspberry Pi 5. It automatically detects YouTube and Instagram links in chats, processes them through the Bagdeg API infrastructure, and delivers playable media directly back to the user.
- Multi-Platform Support: Works seamlessly with YouTube (Shorts/Videos) and Instagram (Reels/Posts).
- Smart Queue Management: Handles multiple requests using a specialized queue system to prevent CPU spikes on the Pi 5.
- Bagdeg API Integration: Optimized backend processing for media fetching and metadata handling.
- Automated Conversion: Uses
yt-dlpandffmpegto ensure every video is 100% compatible with WhatsApp's native player. - Resource Efficient: Low-idle power consumption with automated disk cleanup after each transmission.
- Hardware: Raspberry Pi 5 (16GB)
- OS: Ubuntu 24.04 Server (ARM64)
- Runtime: Node.js v20+
- Core Engines: yt-dlp, ffmpeg, Chromium (Headless)
- Library: whatsapp-web.js
You can set up the entire environment, install dependencies, and create a 24/7 background service with just one command:
git clone https://github.com/erogluyusuf/wp-biindir.git
cd wp-biindir
sudo chmod +x install.sh
sudo ./install.shIf you prefer to set it up manually:
- Clone the repo and run
npm install. - Install system packages:
sudo apt install ffmpeg chromium-browser - Install yt-dlp:
sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp && sudo chmod a+rx /usr/local/bin/yt-dlp - Run:
node index.js
Once the bot is running and you have scanned the QR code with a WhatsApp account:
- Simply send any YouTube (Video/Shorts) or Instagram (Reels/Post) link to the bot's WhatsApp number.
- The bot will automatically detect the link, place it in the queue, download it, and reply with the playable
.mp4video directly in the chat. - Type
!pingto check if the Pi 5 is online.
This bot is for personal and educational use. Using unofficial APIs with standard WhatsApp accounts may lead to temporary bans from WhatsApp. It is highly recommended to use a spare phone number for the bot.
This project is pre-configured with a .gitignore file. It strictly excludes:
- node_modules/ (Dependency overhead)
- .wwebjs_auth/ (Your private WhatsApp session keys)
- *.mp4 (Temporary media files)
Developed with ❤️ by Yusuf Eroğlu Software Developer | Network & System Administration Specialist
Powered by Bagdeg API Infrastructure