{"id":28581201,"url":"https://github.com/hormold/py-tg-chat","last_synced_at":"2026-05-01T02:31:05.153Z","repository":{"id":137441235,"uuid":"596171501","full_name":"Hormold/py-tg-chat","owner":"Hormold","description":"Selfhosted telegram bot to talk with GPT-3 like in ChatGPT. It support web search (DDG), saved contexts and group chats","archived":false,"fork":false,"pushed_at":"2023-03-03T09:17:01.000Z","size":182,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T04:16:27.842Z","etag":null,"topics":["bot","chatgpt","duckduckgo","gpt-3","openai","python","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/Hormold.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,"zenodo":null}},"created_at":"2023-02-01T16:08:00.000Z","updated_at":"2023-11-15T23:03:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"20e58ab6-ff37-4b13-b961-76430e676b46","html_url":"https://github.com/Hormold/py-tg-chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hormold/py-tg-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Fpy-tg-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Fpy-tg-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Fpy-tg-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Fpy-tg-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hormold","download_url":"https://codeload.github.com/Hormold/py-tg-chat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hormold%2Fpy-tg-chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32483406,"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":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["bot","chatgpt","duckduckgo","gpt-3","openai","python","telegram","telegram-bot"],"created_at":"2025-06-11T04:16:19.370Z","updated_at":"2026-05-01T02:31:05.148Z","avatar_url":"https://github.com/Hormold.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Self hosted telegram bot to talk with GPT-3 using OpenAI Model with converstion manager\n\nSimple telegram bot for generating text using ChatGPT model.\nBot remember your conversation context and use it for generating next answer.\nIt requires token from [https://openai.com/](https://openai.com/) but you can use it for free. Requests are non limited and completed free of charge from the OpenAI API. All you need is an API key.\n\n## Installation (Poetry)\n\n1. Install [Poetry](https://python-poetry.org/docs/#installation)\n2. Navigate to project folder. If you want to save env in project folder use: ```poetry config virtualenvs.create false --local```\n3. Run ```poetry install```\n4. Run ```poetry shell```\n5. Edit ```.env``` file and set your tokens (see below)\n6. And then ```python3 main.py```\n\n## Environment variables\n- OPENAI_TOKEN - your token from [https://openai.com/](https://openai.com/)\n- BOT_TOKEN - your bot token from [https://telegram.me/BotFather](https://telegram.me/BotFather)\n- OPENAI_ENGINE - engine for generating text. Default is text-davinci-003 (paid)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhormold%2Fpy-tg-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhormold%2Fpy-tg-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhormold%2Fpy-tg-chat/lists"}