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. π§π₯π
- Host: GitHub
- URL: https://github.com/superhexa/compressbot
- Owner: superhexa
- License: mit
- Created: 2024-08-10T13:41:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T16:33:00.000Z (almost 2 years ago)
- Last Synced: 2025-03-20T14:40:20.071Z (about 1 year ago)
- Topics: audio, compress, telegram, video
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 13
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π§ CompressBot π₯

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! π**