{"id":31768207,"url":"https://github.com/smarthypercube/ai-bot-5","last_synced_at":"2025-10-10T01:57:32.806Z","repository":{"id":317920522,"uuid":"1069329589","full_name":"SmartHypercube/ai-bot-5","owner":"SmartHypercube","description":"Hypercube 的 AI Telegram Bot","archived":false,"fork":false,"pushed_at":"2025-10-03T20:56:10.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-03T22:30:36.528Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SmartHypercube.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":null,"dco":null,"cla":null}},"created_at":"2025-10-03T18:58:03.000Z","updated_at":"2025-10-03T20:56:13.000Z","dependencies_parsed_at":"2025-10-03T22:30:45.286Z","dependency_job_id":"6814c4eb-6dff-4f41-a5dd-c568643bfc97","html_url":"https://github.com/SmartHypercube/ai-bot-5","commit_stats":null,"previous_names":["smarthypercube/ai-bot-5"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/SmartHypercube/ai-bot-5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartHypercube%2Fai-bot-5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartHypercube%2Fai-bot-5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartHypercube%2Fai-bot-5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartHypercube%2Fai-bot-5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartHypercube","download_url":"https://codeload.github.com/SmartHypercube/ai-bot-5/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartHypercube%2Fai-bot-5/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002401,"owners_count":26083375,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-10-10T01:57:28.574Z","updated_at":"2025-10-10T01:57:32.801Z","avatar_url":"https://github.com/SmartHypercube.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hypercube 的 AI Telegram Bot\n\n仅仅是开源一下我自己用的代码。如果别人想部署的话，至少需要修改 `src/main.py` 中的 `DEVELOPER` 常量和 Docker 相关文件，长输出折叠功能还依赖于特定 Nginx 配置和域名，还需要注意本项目假设白名单用户是可信的。\n\n感谢 [zzh1996/chatgpt-telegram-bot](https://github.com/zzh1996/chatgpt-telegram-bot) 项目提供了一些启发。\n\n## 功能特性\n\n- 主要针对个人日常使用场景优化，支持不带特殊语法地直接给 bot 发送消息，收到不带干扰的回答文本，并且仍支持复杂的自定义功能。\n- 按对话支持设置默认模型和系统提示，可以用几个只有自己和 bot 的群分别实现不同功能，例如某个群里不带特殊语法发送文本就能用低延迟模型翻译。\n- 按用户白名单，白名单用户可以随意创建多个只有自己和 bot 的群。\n- 同时支持 OpenAI 和 Gemini 模型。\n- 用户友好的模型和参数选择界面，支持自定义系统提示。\n- 利用回复功能支持可分叉的对话历史。\n- 支持图片、PDF、文本文件输入。\n- 长输出支持每个用户分别设置是否折叠显示的偏好。\n- 不流式输出，用户可以在生成完成时收到 Telegram 通知。\n- 要求 OpenAI 不保存对话，利用加密 reasoning tokens 将思考历史保持在上下文中。\n- 默认发送报错信息给开发者，但可以设置特定用户的报错信息发给用户自己，也不打印任何日志，避免无意间看到隐私信息。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmarthypercube%2Fai-bot-5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmarthypercube%2Fai-bot-5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmarthypercube%2Fai-bot-5/lists"}