Skip to content

CompressBot is a Telegram bot that efficiently compresses audio and video files, making them easier to share while maintaining quality. With a simple interface and fast processing, CompressBot is your go-to tool for media compression on the go. 🎧πŸŽ₯πŸš€

License

Notifications You must be signed in to change notification settings

superhexa/CompressBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎧 CompressBot πŸŽ₯

Screenshot from 2024-08-10 09-12-16

Welcome to CompressBotβ€”your all-in-one Telegram bot for compressing audio and video files with ease! πŸš€

🌟 Features

  • Compress Audio 🎧: Convert and compress your audio files to a smaller size while maintaining good quality.
  • Compress Video πŸŽ₯: Reduce the size of your video files with efficient compression without significant loss in quality.
  • User-Friendly: Simple commands and easy-to-use interface.
  • Fast Processing ⚑: Get your compressed files quickly.

πŸ›  Installation

Follow these steps to set up the bot locally:

  1. Clone the repository:

    git clone https://github.com/superhexa/CompressBot.git
    cd CompressBot
  2. Install Dependencies:

    pip install -r requirements.txt
  3. Configure Environment Variables:

    • Open the config.py file in the root directory.
    • Add your credentials:
      API_ID = 'api_id'
      API_HASH = 'api_hash'
      API_TOKEN = 'bot_token'
  4. Run the bot:

    python bot.py

πŸ“¦ Requirements

  • Python 3.7+
  • Pyrogram - For Telegram bot API interaction
  • Pydub - For audio processing
  • FFmpeg - For video compression

πŸš€ Usage

  1. Start the bot by sending the /start command.
  2. Choose between compressing audio or video files.
  3. Upload your media file.
  4. Receive the compressed file instantly!

πŸ›  Configuration

You can adjust the compression parameters in the script to suit your needs:

  • Audio Compression: Adjust the bitrate and format in the handle_audio function.
  • Video Compression: Modify the FFmpeg command in the handle_video function to tweak video resolution, bitrate, etc.

πŸ› Issues

If you encounter any issues or have suggestions, please feel free to open an issue or submit a pull request.

πŸ“œ License

This project is licensed under the MIT Licenseβ€”see the LICENSE file for details.


Enjoy CompressBot and make your media sharing easier! πŸŽ‰

About

CompressBot is a Telegram bot that efficiently compresses audio and video files, making them easier to share while maintaining quality. With a simple interface and fast processing, CompressBot is your go-to tool for media compression on the go. 🎧πŸŽ₯πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages