This Telegram bot uses the Tinify API to compress images. Users can either upload images or provide image URLs to get compressed versions. The bot is built using the Pyrogram library.
- 📤 Compress images from file uploads.
- 🌐 Compress images from URLs.
- 💬 User-friendly messages.
⚠️ Error handling and logging.
git clone https://github.com/cybernobie/Image-Compressor-Bot.git
cd Image-Compressor-Bot
pip install -r requirements.txt
python bot.py
API_ID
API_HASH
BOT_TOKEN
TINIFY API_KEY
-- Note: Don`t forgot to edit config vars in .env
The bot has many potential enhancements that could increase its usability and flexibility:
- 🛠️ Image Quality and Resolution Options: Allow users to specify the compression level or target file size and resolution.
- 🔄 File Format Conversion: Convert images into various formats (e.g., PNG to JPEG) during compression.
- 📂 Batch Compression: Support compressing multiple images at once.
- 📊 Compression Statistics: Display original and compressed sizes, and the percentage of reduction.
- 🔍 Image Preview: Provide users with a preview of the compressed image to compare quality.
Thanks to all the wonderful people who have contributed to this project!
Aryan Singh Negi |
Akash Shah |
Ekta Mishra |
Manshi Singh |