Skip to content

Telegram Bot allows users to easily compress images by either uploading files directly or providing image URLs.

License

Notifications You must be signed in to change notification settings

cybernobie/Image-Compressor-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖼️ Image Compressor Bot

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.

🚀 Features

  • 📤 Compress images from file uploads.
  • 🌐 Compress images from URLs.
  • 💬 User-friendly messages.
  • ⚠️ Error handling and logging.

💻 Installation

Clone the repository:

git clone https://github.com/cybernobie/Image-Compressor-Bot.git
cd Image-Compressor-Bot
pip install -r requirements.txt
python bot.py

How to get .env variables:

API_ID
API_HASH
BOT_TOKEN
TINIFY API_KEY

-- Note: Don`t forgot to edit config vars in .env

Future Enhancements and Scope

The bot has many potential enhancements that could increase its usability and flexibility:

  1. 🛠️ Image Quality and Resolution Options: Allow users to specify the compression level or target file size and resolution.
  2. 🔄 File Format Conversion: Convert images into various formats (e.g., PNG to JPEG) during compression.
  3. 📂 Batch Compression: Support compressing multiple images at once.
  4. 📊 Compression Statistics: Display original and compressed sizes, and the percentage of reduction.
  5. 🔍 Image Preview: Provide users with a preview of the compressed image to compare quality.

🙌 Contributors

Thanks to all the wonderful people who have contributed to this project!

Contributors

🎉 Our Amazing Contributors

Aryan Singh Negi
Aryan Singh Negi
coding-destini
Akash Shah
Ekta Mishra
Ekta Mishra
Manshi Singh
Manshi Singh

About

Telegram Bot allows users to easily compress images by either uploading files directly or providing image URLs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages