{"id":20392132,"url":"https://github.com/octonezd/sd-tg-bot","last_synced_at":"2025-09-18T00:53:24.949Z","repository":{"id":192135813,"uuid":"686100292","full_name":"OctoNezd/sd-tg-bot","owner":"OctoNezd","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-13T19:03:44.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T00:18:22.758Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OctoNezd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-09-01T18:38:49.000Z","updated_at":"2023-09-01T19:07:50.000Z","dependencies_parsed_at":"2025-01-15T10:03:25.544Z","dependency_job_id":"132c32ff-3881-4c20-98db-415439b8db7c","html_url":"https://github.com/OctoNezd/sd-tg-bot","commit_stats":null,"previous_names":["octonezd/sd-tg-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OctoNezd/sd-tg-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OctoNezd%2Fsd-tg-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OctoNezd%2Fsd-tg-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OctoNezd%2Fsd-tg-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OctoNezd%2Fsd-tg-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OctoNezd","download_url":"https://codeload.github.com/OctoNezd/sd-tg-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OctoNezd%2Fsd-tg-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275691198,"owners_count":25510501,"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-09-17T02:00:09.119Z","response_time":84,"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":[],"created_at":"2024-11-15T03:39:37.083Z","updated_at":"2025-09-18T00:53:24.923Z","avatar_url":"https://github.com/OctoNezd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StableDiffusion AUTOMATIC1111 Telegram bot\n\n## Usage\n\n1. Create .env file or systemd service with following environment variables. Customize them to apply to you, obviously.\n\n```\nTG_BOT_API_TOKEN=telegramtokenhere\nSD_WEBUI_URL=http://my.stable-diffusion.server:7860/\nCHAT_WHITELIST=my-telegram-group-id\nGENERATION_CONFIG={\"negative_prompt\": \"(worst quality:1.6, low quality:1.6), (zombie, sketch, interlocked fingers, comic)\", \"sampler_index\": \"UniPC\", \"width\": 512, \"height\": 768, \"steps\": 25}\nRANDOM_PROMPT_PERCENTAGE=5\n```\n\n(RANDOM_PROMPT_PERCENTAGE defines the random percentage at which bot will catch random message in chat and prompt it for shit and giggles. Set to 0 to disable)\n\n2. `poetry install`\n\n3. Run `python3 main.py`\n\n## Using with AbdBarho/stable-diffusion-webui-docker\n\nAdd docker-compose.override.yml file:\n\n```yml\nversion: \"3.9\"\nservices:\n    telegram-bot:\n        profiles: [\"auto\", \"auto-cpu\"]\n        build: \"./sd-tg-bot\"\n        restart: unless-stopped\n        environment:\n            - SD_WEBUI_URL=http://auto:7860 # Or auto-cpu\n```\n\nClone bot:\n\n`git clone https://github.com/OctoNezd/sd-tg-bot.git`\n\nSetup .env file or specify parameters in `environment:`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctonezd%2Fsd-tg-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctonezd%2Fsd-tg-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctonezd%2Fsd-tg-bot/lists"}