{"id":37113034,"url":"https://github.com/tectiv3/chatgpt-bot","last_synced_at":"2026-01-14T13:21:02.940Z","repository":{"id":155828513,"uuid":"614390301","full_name":"tectiv3/chatgpt-bot","owner":"tectiv3","description":"Telegram bot with OpenAI chat. Supports answering to voice messages. Streaming responses. History summarization. Function calls","archived":false,"fork":false,"pushed_at":"2025-11-22T12:10:50.000Z","size":746,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-22T14:20:03.498Z","etag":null,"topics":["chatgpt","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/tectiv3.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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2023-03-15T13:47:03.000Z","updated_at":"2025-09-15T12:42:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"c625c22e-56c4-4b69-904e-9a2eee7b4966","html_url":"https://github.com/tectiv3/chatgpt-bot","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/tectiv3/chatgpt-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fchatgpt-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fchatgpt-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fchatgpt-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fchatgpt-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tectiv3","download_url":"https://codeload.github.com/tectiv3/chatgpt-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fchatgpt-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","telegram","telegram-bot"],"created_at":"2026-01-14T13:21:02.233Z","updated_at":"2026-01-14T13:21:02.924Z","avatar_url":"https://github.com/tectiv3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram ChatGPT Bot\n\nA telegram bot which answers to messages with [ChatGPT API](https://platform.openai.com/docs/api-reference/chat).\n\n## Configuration\n\nCopy example configuration file:\n\n```bash\n$ cp config.json.sample config.json\n```\n\nand set your values:\n\n```json\n{\n    \"telegram_bot_token\": \"123456:abcdefghijklmnop-QRSTUVWXYZ7890\",\n    \"openai_api_key\": \"key-ABCDEFGHIJK1234567890\",\n    \"openai_org_id\": \"org-1234567890abcdefghijk\",\n    \"allowed_telegram_users\": [\"user1\", \"user2\"],\n    \"openai_model\": \"gpt-4o-mini\",\n    \"verbose\": false\n}\n```\n\n### Install dependencies\n\n`libmp3lame0` is required for mp3 encoding. (macOS: `brew install lame`)\n\n`libopus0` is required for ogg opus decoding. (macOS: `brew install opusfile`)\n\nOn macOS, you might also need `brew install pkg-config`.\n\n#### Ubuntu:\n```bash\n$ sudo apt-get install libmp3lame0 libopus0 libopusfile0 libogg0 libmp3lame-dev libopusfile-dev\n```\n\n## Build\n\n```bash\n$ go build\n```\n\n## Run\n\nRun the built binary with the config file's path:\n\n```bash\n$ ./chatgpt-bot\n```\n\n## Run as a systemd service\n\nCreatea a systemd service file:\n\n```\n[Unit]\nDescription=Telegram ChatGPT Bot\nAfter=syslog.target\nAfter=network.target\n\n[Service]\nType=simple\nUser=pi\nGroup=pi\nWorkingDirectory=/dir/to/chatgpt-bot\nExecStart=/dir/to/chatgpt-bot/chatgpt-bot /path/to/config.json\nRestart=always\nRestartSec=5\n\n[Install]\nWantedBy=multi-user.target\n```\n\n```bash\n$ systemctl daemon-reload\n```\n\nand `systemctl` enable|start|restart|stop the service.\n\n## License\n\nThe MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftectiv3%2Fchatgpt-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftectiv3%2Fchatgpt-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftectiv3%2Fchatgpt-bot/lists"}