{"id":21747512,"url":"https://github.com/zaitsev-dev/benzin-io-bot","last_synced_at":"2025-03-21T02:21:22.541Z","repository":{"id":249353221,"uuid":"580414623","full_name":"zaitsev-dev/benzin-io-bot","owner":"zaitsev-dev","description":"Telegram bot for removing the background from an image","archived":false,"fork":false,"pushed_at":"2022-12-20T20:05:42.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T22:54:41.559Z","etag":null,"topics":["aiogram","aiohttp","photo-editing","python","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaitsev-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2022-12-20T14:00:32.000Z","updated_at":"2022-12-20T20:15:18.000Z","dependencies_parsed_at":"2024-07-20T07:20:44.045Z","dependency_job_id":null,"html_url":"https://github.com/zaitsev-dev/benzin-io-bot","commit_stats":null,"previous_names":["zaitsev-dev/benzin-io-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaitsev-dev%2Fbenzin-io-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaitsev-dev%2Fbenzin-io-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaitsev-dev%2Fbenzin-io-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaitsev-dev%2Fbenzin-io-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaitsev-dev","download_url":"https://codeload.github.com/zaitsev-dev/benzin-io-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244722734,"owners_count":20499154,"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":["aiogram","aiohttp","photo-editing","python","telegram-bot"],"created_at":"2024-11-26T08:09:21.539Z","updated_at":"2025-03-21T02:21:22.516Z","avatar_url":"https://github.com/zaitsev-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e Benzin IO bot\u003c/h1\u003e\n\u003c/div\u003e\n\nBenzin-io is a small, asynchronous application that removes the background of the image.\nIt uses a [third-party API](https://benzin.io/) to process the photos and\nthe [Telegram Bot API](https://core.telegram.org/bots/api) to implement the user\ninterface.\n\nIt also uses _aiogram_ to implement fast and async Telegram bots, _aiohttp_ to send async\nrequests, and _loguru_ for logging.\n\n## Installation\n\nFirstly, you should create your Telegram bot and get its\ntoken ([read more](https://core.telegram.org/bots#how-do-i-create-a-bot)). Also, you have\nto create a Benzin.io account and take their API key\ntoo ([read more](https://benzin.io/integration/api-docs/)). Finally, if you're done, you\ncan start an installation.\n\nClone the repository and go into it:\n\n```shell\ngit clone https://github.com/Leetovskiy/benzin-io-bot.git\ncd benzin-io-bot\n```\n\nIn this step, you have two options: use `pipenv` or `pip`. If you choose `pip` you should\nmanually create a virtual environment to avoid conflicts with the system environment.\n`pipenv` does it by itself, so you do not need to do anything.\n\n```shell\n# For pip users\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n\n# For pipenv users\npipenv install\n```\n\nNext, you should pass your Telegram bot token and Benzin.io API key to environment\nvariables. You may also want to create an.env file and store this information in it if you\nuse `pipenv`.\n\n```shell\n# For pip users\nexport BOT_TOKEN=\"\u003cyour_token\u003e\"\nexport BENZIN_TOKEN=\"\u003cyour_key\u003e\"\n```\n\n```dotenv\n# .env file (for pipenv users)\nBOT_TOKEN=\u003cyour_token\u003e\nBENZIN_TOKEN=\u003cyour_key\u003e\n```\n\nAll right, that's it. Try running `main.py` and sending the `/start` command to chat.\n\n```shell\npython main.py\n```\n\n## License\n\nThe Apache 2.0 license applies to the project's sources. For further details, refer to\nthe [LICENSE.txt](https://github.com/Leetovskiy/benzin-io-bot/blob/master/LICENSE.txt)\nfile.\n\n## Contribution\n\nFeel free to make a pull request and contribute if you accept the Apache 2.0 license. I'm\nalso open to discussing any suggestions you may have regarding this project.\n\n---\n\n\u003cdiv align=\"right\"\u003e\n  Telegram: \u003ca href=\"https://t.me/leetovskiy\"\u003e@leetovskiy\u003c/a\u003e\u003cbr\u003e\n  Email: \u003ca href=\"mailto:dev.zaitsev@gmail.com\"\u003edev.zaitsev@gmail.com\u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaitsev-dev%2Fbenzin-io-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaitsev-dev%2Fbenzin-io-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaitsev-dev%2Fbenzin-io-bot/lists"}