{"id":13637110,"url":"https://github.com/leafduo/chatgpt-telegram-bot","last_synced_at":"2026-01-21T12:34:00.904Z","repository":{"id":109479002,"uuid":"609474830","full_name":"leafduo/chatgpt-telegram-bot","owner":"leafduo","description":"Telegram bot for ChatGPT","archived":false,"fork":false,"pushed_at":"2025-03-24T11:03:19.000Z","size":128,"stargazers_count":160,"open_issues_count":6,"forks_count":28,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T14:35:06.257Z","etag":null,"topics":["chatgpt","chatgpt-bot","go","golang","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","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/leafduo.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-03-04T09:34:57.000Z","updated_at":"2025-03-25T05:20:18.000Z","dependencies_parsed_at":"2024-01-12T18:25:04.484Z","dependency_job_id":"85c3783a-4e9f-4d15-bb95-e2724acf90e6","html_url":"https://github.com/leafduo/chatgpt-telegram-bot","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/leafduo/chatgpt-telegram-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafduo%2Fchatgpt-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafduo%2Fchatgpt-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafduo%2Fchatgpt-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafduo%2Fchatgpt-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafduo","download_url":"https://codeload.github.com/leafduo/chatgpt-telegram-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafduo%2Fchatgpt-telegram-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["chatgpt","chatgpt-bot","go","golang","telegram","telegram-bot"],"created_at":"2024-08-02T00:01:10.723Z","updated_at":"2026-01-21T12:34:00.868Z","avatar_url":"https://github.com/leafduo.png","language":"Go","funding_links":[],"categories":["Chatbots","🔧 Others","聊天机器人"],"sub_categories":["Special-purpose"],"readme":"# ChatGPT Telegram bot\n\nRun your own ChatGPT Telegram bot!\n\n## Setup\n\n1. Get your OpenAI API key\n\n   You can create an account on the OpenAI website and [generate your API key](https://platform.openai.com/account/api-keys).\n\n2. Get your telegram bot token\n\n   Create a bot from Telegram [@BotFather](https://t.me/BotFather) and obtain an access token.\n\n3. Install using `go install`\n\n   If you have a Go environment, you can install it with the following command:\n\n```bash\ngo install github.com/leafduo/chatgpt-telegram-bot@latest\n```\n\n4. Install using binary\n\n   You can get prebuilt binaries from [GitHub Releases](https://github.com/leafduo/chatgpt-telegram-bot/releases) and put it in `$PATH`\n\n5. Install using Docker-compose\n\n   Check out [docker-compose.yml](docker-compose.yml) for sample config\n\n6. Set the environment variables and run\n\n```bash\nexport OPENAI_API_KEY=\u003cyour_openai_api_key\u003e\nexport TELEGRAM_APITOKEN=\u003cyour_telegram_bot_token\u003e\n# Optional, default is empty. Only allow these users to use the bot. Empty means allow all users.\nexport ALLOWED_TELEGRAM_ID=\u003cyour_telegram_id\u003e,\u003cyour_friend_telegram_id\u003e\n# Optional, default is 1.0. Higher temperature means more random responses.\n# See https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature\nexport MODEL_TEMPERATURE=1.0\n# Optional, default is 900. Max idle duration for a certain conversation.\n# After this duration, a new conversation will be started.\nexport CONVERSATION_IDLE_TIMEOUT_SECONDS=900\n# Optional, defaults to gpt-3.5-turbo. Specify which model to use.\n# Currently, only `gpt-3.5-turbo` and `gpt-4` are supported.\nexport OPENAI_MODEL=gpt-3.5-turbo\n# Optional, defaults to https://api.openai.com.\n# You can use this to set a custom OpenAI API endpoint to use third party relay services like https://api2d.com/.\nexport OPENAI_BASE_URL=https://api.openai.com\n\nchatgpt-telegram-bot\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafduo%2Fchatgpt-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafduo%2Fchatgpt-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafduo%2Fchatgpt-telegram-bot/lists"}