{"id":22080563,"url":"https://github.com/electronic-mango/openai-dalle-telegram-bot","last_synced_at":"2026-04-30T18:31:51.016Z","repository":{"id":232265703,"uuid":"783892481","full_name":"Electronic-Mango/openai-dalle-telegram-bot","owner":"Electronic-Mango","description":"Telegram bot for your DALL·E needs.","archived":false,"fork":false,"pushed_at":"2024-06-15T15:00:09.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-16T14:49:47.003Z","etag":null,"topics":["dall-e","dalle","openai","openai-api","python","python-telegram-bot","python3","telegram"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Electronic-Mango.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-04-08T19:29:27.000Z","updated_at":"2024-06-15T15:00:12.000Z","dependencies_parsed_at":"2024-10-26T14:57:40.332Z","dependency_job_id":"c03b96ad-3324-479c-a730-483fbef03510","html_url":"https://github.com/Electronic-Mango/openai-dalle-telegram-bot","commit_stats":null,"previous_names":["electronic-mango/openai-dalle-telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Electronic-Mango/openai-dalle-telegram-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electronic-Mango%2Fopenai-dalle-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electronic-Mango%2Fopenai-dalle-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electronic-Mango%2Fopenai-dalle-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electronic-Mango%2Fopenai-dalle-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Electronic-Mango","download_url":"https://codeload.github.com/Electronic-Mango/openai-dalle-telegram-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electronic-Mango%2Fopenai-dalle-telegram-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32473804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dall-e","dalle","openai","openai-api","python","python-telegram-bot","python3","telegram"],"created_at":"2024-11-30T23:15:47.197Z","updated_at":"2026-04-30T18:31:50.994Z","avatar_url":"https://github.com/Electronic-Mango.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple OpenAI image model Telegram bot\n\nA simple and unofficial Telegram bot wrapping [OpenAI API](https://openai.com/blog/openai-api/) image models (like [DALL·E](https://openai.com/dall-e-3)), build with [`python-telegram-bot`](https://github.com/python-telegram-bot/python-telegram-bot)!\n\nJust send a prompt and the bot will respond with a generated image!\n\n\n\n## Requirements\n\nThis bot was built with `Python 3.12`, [`python-telegram-bot`](https://github.com/python-telegram-bot/python-telegram-bot) and [`openai-python`](https://github.com/openai/openai-python).\nFull list of Python requirements is in the `requirements.txt` file, you can use it to install all of them.\n\n\n\n## Configuration\n\nConfiguration is done through a `.env` file. You can copy example file `.env.example` as `.env` and fill required parameters.\n\n```commandline\ncp .env.example .env\n```\n\n\n### Telegram bot\n\nOnly required parameter is a [bot token](https://core.telegram.org/bots#creating-a-new-bot).\n\nYou can also restrict who can access the bot via `ALLOWED_USERNAMES`.\nYou can specify multiple usernames delimited by space.\nIf you don't want to restrict the bot at all you can remove this parameter or leave it empty.\n\n\n### OpenAI API\n\nThere are two required parameters - [API key](https://platform.openai.com/account/api-keys) and [used model](https://platform.openai.com/docs/models/dall-e).\n\n```dotenv\nOPENAI_TOKEN='\u003cyour secret API key\u003e'\nOPENAI_MODEL='dall-e-3 or dall-e-2'\n```\n\nThrough `.env` you can also configure level of logging of OpenAI API through `OPENAI_LOG` parameter.\nYou can set it to `debug` or `info`.\n```dotenv\nOPENAI_LOG='debug or info'\n```\n\n\n\n## Commands\n\n* `/again` - generates new image for last received prompt\n* `/start` or `/help` - prints a simple start message\n\n\n\n## Running the bot\n\nYou can run the bot from the source code directly, or in a Docker container.\n\n\n### From source code\n\n1. Create a Telegram bot via [BotFather](https://core.telegram.org/bots#6-botfather)\n2. Create [OpenAI API key](https://platform.openai.com/account/api-keys)\n3. Install all packages from `requirements.txt`\n4. Fill `.env` file\n5. Run `main.py` file with Python\n\n\n### Docker\n\n1. Create a Telegram bot via [BotFather](https://core.telegram.org/bots#6-botfather)\n2. Create [OpenAI API key](https://platform.openai.com/account/api-keys)\n3. Fill `.env` file\n4. Run `docker compose up -d --build` in terminal\n\nNote that `.env` file is used only for loading environment variables into Docker container through compose.\nThe file itself isn't added to the container.\n\n\n\n## Disclaimer\n\nThis bot is in no way affiliated, associated, authorized, endorsed by, or in any way officially connected with OpenAI.\nThis is an independent and unofficial project.\nUse at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectronic-mango%2Fopenai-dalle-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectronic-mango%2Fopenai-dalle-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectronic-mango%2Fopenai-dalle-telegram-bot/lists"}