{"id":24203399,"url":"https://github.com/m0t9/tg-openai-binder","last_synced_at":"2025-09-22T02:32:29.257Z","repository":{"id":200460048,"uuid":"705552268","full_name":"m0t9/tg-openai-binder","owner":"m0t9","description":"A simple Telegram bot to interact with Open AI models 🤖","archived":false,"fork":false,"pushed_at":"2024-06-07T16:42:55.000Z","size":21,"stargazers_count":9,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-07T18:13:45.209Z","etag":null,"topics":["bot","chatgpt","chatgpt-telegram-bot","openai","openai-telegram-bot","telegram","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m0t9.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":"2023-10-16T08:34:51.000Z","updated_at":"2024-06-07T16:42:59.000Z","dependencies_parsed_at":"2023-11-08T13:35:51.359Z","dependency_job_id":"c68e5822-aae7-4495-a056-b5f0696644b0","html_url":"https://github.com/m0t9/tg-openai-binder","commit_stats":null,"previous_names":["m0t9/tg-openai-binder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0t9%2Ftg-openai-binder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0t9%2Ftg-openai-binder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0t9%2Ftg-openai-binder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0t9%2Ftg-openai-binder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m0t9","download_url":"https://codeload.github.com/m0t9/tg-openai-binder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233817566,"owners_count":18735030,"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":["bot","chatgpt","chatgpt-telegram-bot","openai","openai-telegram-bot","telegram","telegram-bot"],"created_at":"2025-01-13T22:34:50.537Z","updated_at":"2025-09-22T02:32:23.979Z","avatar_url":"https://github.com/m0t9.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tg-openai-binder\n\n![ChatGPT](https://img.shields.io/badge/chatGPT-74aa9c?style=for-the-badge\u0026logo=openai\u0026logoColor=white)\n![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge\u0026logo=telegram\u0026logoColor=white)\n\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54)\n![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge\u0026logo=docker\u0026logoColor=white)\n\nA simple Telegram bot to interact with Open AI models\n\n# Build\n\n1. clone this repo via\n   ```bash\n   git clone https://github.com/m0t9/tg-openai-binder\n   ```\n2. set your parameters in `.env` file\n\n   | Parameter              | Meaning                                                                                                               |\n   |------------------------|-----------------------------------------------------------------------------------------------------------------------|\n   | `API_KEY`              | Your OpenAI API key                                                                                                   |\n   | `MODEL`                | Name of used OpenAI model                                                                                             |\n   | `PROXY`                | _Optional. Proxy server for OpenAI queries processing_                                                                |\n   | `TOKEN`                | Telegram bot token                                                                                                    |\n   | `START_PLACEHOLDER`    | Message that bot will send as response to `/start` command                                                            |\n   | `PLACEHOLDER`          | Message that bot will show while request processing                                                                   |\n   | `CLEAR_CONTEXT_ANSWER` | Message that bot will send as response to `/delete_context` command                                                   |\n   | `CONTEXT_SIZE`         | Number of the last messages in the dialogue with bot that will be considered as context. High values affect RAM usage |\n   | `OPEN_AI_ERROR`        | Message that bot will send if something goes wrong during OpenAI query processing                                     |\n   | `ALLOWED_IDS`          | List of Telegram users (separated by comma) IDs that are allowed to interact with bot                                 |\n   | `ENABLE_RENDER`        | True or False. Exposes the web-server on :10000 (required for render.com free-tier web-service deployment)            |\n\n3. execute this command in repo root directory\n    ```bash\n    docker-compose up -d --build\n    ```\n\n# Interaction\n\n| Command           | Meaning                                                             |\n|-------------------|---------------------------------------------------------------------|\n| `/start`          | Start dialogue with bot. As response it sends `START_PLACEHOLDER`   |\n| `/delete_context` | Clears the dialogue context with user. Sends `CLEAR_CONTEXT_ANSWER` |\n| any other text    | Will be considered as a query to OpenAI                             |\n\n\u003cimg width=\"900\" alt=\"image\" src=\"https://github.com/m0t9/tg-openai-binder/assets/60100612/92b90a80-e34a-4e51-8551-2071c55e3cf5\"\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0t9%2Ftg-openai-binder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm0t9%2Ftg-openai-binder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0t9%2Ftg-openai-binder/lists"}