{"id":18245877,"url":"https://github.com/superhexa/compressbot","last_synced_at":"2025-04-04T14:31:10.307Z","repository":{"id":252533630,"uuid":"840722432","full_name":"superhexa/CompressBot","owner":"superhexa","description":"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. 🎧🎥🚀","archived":false,"fork":false,"pushed_at":"2024-08-11T16:33:00.000Z","size":19,"stargazers_count":13,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T14:40:20.071Z","etag":null,"topics":["audio","compress","telegram","video"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/superhexa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-10T13:41:45.000Z","updated_at":"2025-03-17T14:55:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e1cbdee-ed37-4cb2-8992-e652711c24c5","html_url":"https://github.com/superhexa/CompressBot","commit_stats":null,"previous_names":["superhexa/compressbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superhexa%2FCompressBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superhexa%2FCompressBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superhexa%2FCompressBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superhexa%2FCompressBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superhexa","download_url":"https://codeload.github.com/superhexa/CompressBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247193955,"owners_count":20899401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","compress","telegram","video"],"created_at":"2024-11-05T09:23:21.470Z","updated_at":"2025-04-04T14:31:10.301Z","avatar_url":"https://github.com/superhexa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎧 CompressBot 🎥\n\n![Screenshot from 2024-08-10 09-12-16](https://github.com/user-attachments/assets/935c3079-5da2-4bf9-9362-c922b410d1a8)\n\nWelcome to **CompressBot**—your all-in-one Telegram bot for compressing audio and video files with ease! 🚀\n\n## 🌟 Features\n\n- **Compress Audio 🎧**: Convert and compress your audio files to a smaller size while maintaining good quality.\n- **Compress Video 🎥**: Reduce the size of your video files with efficient compression without significant loss in quality.\n- **User-Friendly**: Simple commands and easy-to-use interface.\n- **Fast Processing ⚡**: Get your compressed files quickly.\n\n## 🛠 Installation\n\nFollow these steps to set up the bot locally:\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/superhexa/CompressBot.git\n   cd CompressBot\n   ```\n\n2. **Install Dependencies**:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. **Configure Environment Variables**:\n   - Open the `config.py` file in the root directory.\n   - Add your credentials:\n     ```python\n     API_ID = 'api_id'\n     API_HASH = 'api_hash'\n     API_TOKEN = 'bot_token'\n     ```\n\n4. **Run the bot**:\n   ```bash\n   python bot.py\n   ```\n\n## 📦 Requirements\n\n- Python 3.7+\n- [Pyrogram](https://docs.pyrogram.org/) - For Telegram bot API interaction\n- [Pydub](https://pydub.com/) - For audio processing\n- [FFmpeg](https://ffmpeg.org/) - For video compression\n\n## 🚀 Usage\n\n1. **Start the bot** by sending the `/start` command.\n2. **Choose** between compressing audio or video files.\n3. **Upload** your media file.\n4. **Receive** the compressed file instantly!\n\n## 🛠 Configuration\n\nYou can adjust the compression parameters in the script to suit your needs:\n\n- **Audio Compression**: Adjust the `bitrate` and `format` in the `handle_audio` function.\n- **Video Compression**: Modify the FFmpeg command in the `handle_video` function to tweak video resolution, bitrate, etc.\n\n## 🐛 Issues\n\nIf 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.\n\n## 📜 License\n\nThis project is licensed under the MIT License—see the [LICENSE](LICENSE) file for details.\n\n---\n\n**Enjoy CompressBot and make your media sharing easier! 🎉**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperhexa%2Fcompressbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperhexa%2Fcompressbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperhexa%2Fcompressbot/lists"}