Bale Downloader Bot
Multi-purpose Bale messenger bot for downloading media from YouTube & Instagram, MP3 audio extraction, image processing, PDF compilation, and AI tools.
Overview
Bale Downloader Bot (@PerYTDownloaderbot) is a powerful Python-based automation bot tailored for the Bale messenger ecosystem via webhook and polling architectures (tapi.bale.ai). It empowers users to download YouTube videos across varying resolutions (144p to 720p) and extract audio as high-fidelity MP3 files or ZIP packages. Beyond video downloading, it features an image manipulation suite (PDF compilation from up to 20 photos, image format conversion, and resizing), Instagram/TikTok reel downloading, Shazam-like music identification, AI chat assistance, and OCR text extraction backed by an asynchronous processing queue.
Key Benchmark:
10+ multi-media modules with sub-3s response time on Bale Messenger API
Key Engineering Features
Key Technical Challenges & Solutions
1Bale platform upload limits and large YouTube media handling
Implemented a dual delivery mechanism: direct video/audio dispatch for sub-50MB files and automated multi-part ZIP packaging for larger media with persistent SHA256 caching.
2Server disk saturation prevention from accumulated media files
Engineered an asynchronous JobQueue routine executing every 2 hours that safely purges downloaded media files older than 7,200 seconds while retaining metadata in cache.
Project Specifications
- Category
- bot
- Engineering Role
- Python Backend & Bot Architect
- Bale Bot ID:
- @PerYTDownloaderbot
- Status
- Production & Active
- Live Demo
- ble.ir/PerYTDownloaderbot
- GitHub Repository
- github.com/seyedali-rafazi/python-bale-bot


