An open API service indexing awesome lists of open source software.

https://github.com/superhexa/compressbot

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. 🎧πŸŽ₯πŸš€
https://github.com/superhexa/compressbot

audio compress telegram video

Last synced: about 1 year ago
JSON representation

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. 🎧πŸŽ₯πŸš€

Awesome Lists containing this project

README

          

# 🎧 CompressBot πŸŽ₯

![Screenshot from 2024-08-10 09-12-16](https://github.com/user-attachments/assets/935c3079-5da2-4bf9-9362-c922b410d1a8)

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**:
```bash
git clone https://github.com/superhexa/CompressBot.git
cd CompressBot
```

2. **Install Dependencies**:
```bash
pip install -r requirements.txt
```

3. **Configure Environment Variables**:
- Open the `config.py` file in the root directory.
- Add your credentials:
```python
API_ID = 'api_id'
API_HASH = 'api_hash'
API_TOKEN = 'bot_token'
```

4. **Run the bot**:
```bash
python bot.py
```

## πŸ“¦ Requirements

- Python 3.7+
- [Pyrogram](https://docs.pyrogram.org/) - For Telegram bot API interaction
- [Pydub](https://pydub.com/) - For audio processing
- [FFmpeg](https://ffmpeg.org/) - 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](https://github.com/superhexa/CompressBot/issues) or submit a pull request.

## πŸ“œ License

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

---

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