{"id":22264340,"url":"https://github.com/basemax/telegram-image-compressor","last_synced_at":"2025-10-13T13:31:29.937Z","repository":{"id":265977819,"uuid":"897002321","full_name":"BaseMax/telegram-image-compressor","owner":"BaseMax","description":"A Telegram bot that validates image URLs, downloads the pictures, compresses them, and shares the compressed picture back with the user.","archived":false,"fork":false,"pushed_at":"2025-06-21T07:37:37.000Z","size":193,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-03T23:38:28.578Z","etag":null,"topics":["compress-image","compress-images","image","image-comparison","image-composition","image-compress","image-compression","image-compressor","py","python","python-telegram","telegram","telegram-python"],"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/BaseMax.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-12-01T20:25:42.000Z","updated_at":"2025-06-21T18:51:32.000Z","dependencies_parsed_at":"2024-12-02T02:31:40.785Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/telegram-image-compressor","commit_stats":null,"previous_names":["basemax/telegram-image-compressor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/telegram-image-compressor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Ftelegram-image-compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Ftelegram-image-compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Ftelegram-image-compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Ftelegram-image-compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/telegram-image-compressor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Ftelegram-image-compressor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015312,"owners_count":26085684,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compress-image","compress-images","image","image-comparison","image-composition","image-compress","image-compression","image-compressor","py","python","python-telegram","telegram","telegram-python"],"created_at":"2024-12-03T10:08:35.908Z","updated_at":"2025-10-13T13:31:28.575Z","avatar_url":"https://github.com/BaseMax.png","language":"Python","readme":"# Telegram Image Compressor Bot (telegram-image-compressor)\n\nA Telegram bot that validates image URLs, downloads the pictures, compresses them, and shares the compressed picture back with the user.\n\n## Features\n\n- Validates user-submitted URLs to ensure they are valid and accessible.\n- Checks if the URL returns a 200 HTTP status code (no 404 or invalid URLs).\n- Retrieves file metadata, such as image size, without downloading the image.\n- Downloads the image in the background.\n- Compresses the image with efficient settings.\n- Sends the compressed image back to the user as a downloadable file.\n\n![Telegram Image Compressor Bot](telegram.jpg)\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/basemax/telegram-image-compressor.git\n   cd telegram-image-compressor\n   ```\n\n2. Install the required Python packages:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Set up your bot token:\n\nObtain a bot token from **BotFather** on Telegram.\n\nReplace `YOUR_BOT_TOKEN` in the `main.py` script with your actual bot token.\n\n## Usage\n\nStart the bot:\n\n```bash\npython main.py\n```\n\nSend a image URL to the bot in Telegram.\n\nThe bot will:\n- Validate the URL.\n- Download the image.\n- Compress the image using Python.\n- Send the compressed image back to you.\n\n## Example\n\nUser sends:\n\n```\nhttps://example.com/image.jpg\n```\n\n\nBot responds:\n\n```\n✅ URL is valid!\n🔄 Downloading image...\n🗜️ Compressing image...\n📤 Sending compressed image...\n```\n\n## Requirements\n\n- Python 3.7+\n- requests Python library\n- python-telegram-bot library\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n## Contributing\n\nContributions are welcome! Please fork this repository and submit a pull request with your changes.\n\n## Contact\n\nFeel free to reach out for any questions or suggestions: **@basemax**\n\nCopyright 2024, Max Base\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Ftelegram-image-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Ftelegram-image-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Ftelegram-image-compressor/lists"}