{"id":23126020,"url":"https://github.com/dyaxy/crisp-telegram-bot","last_synced_at":"2025-04-07T15:09:57.692Z","repository":{"id":232927007,"uuid":"777154310","full_name":"DyAxy/Crisp-Telegram-Bot","owner":"DyAxy","description":"基于 Telegram Topic 的 Crisp 插件，以分栏显示聊天，再也不用担心回错人了。","archived":false,"fork":false,"pushed_at":"2024-11-29T03:13:29.000Z","size":31,"stargazers_count":62,"open_issues_count":0,"forks_count":25,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T13:19:11.157Z","etag":null,"topics":["crisp-chat","python","python3","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/DyAxy.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":"2024-03-25T10:04:59.000Z","updated_at":"2025-03-16T02:12:12.000Z","dependencies_parsed_at":"2024-04-12T13:27:39.037Z","dependency_job_id":"d6caca90-37a5-407f-87ff-78a7d327f712","html_url":"https://github.com/DyAxy/Crisp-Telegram-Bot","commit_stats":null,"previous_names":["dyaxy/crisp-telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DyAxy%2FCrisp-Telegram-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DyAxy%2FCrisp-Telegram-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DyAxy%2FCrisp-Telegram-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DyAxy%2FCrisp-Telegram-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DyAxy","download_url":"https://codeload.github.com/DyAxy/Crisp-Telegram-Bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675607,"owners_count":20977378,"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":["crisp-chat","python","python3","telegram","telegram-bot"],"created_at":"2024-12-17T08:18:05.692Z","updated_at":"2025-04-07T15:09:57.673Z","avatar_url":"https://github.com/DyAxy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crisp Telegram Bot via Python\n\n## 此项目已不再维护，请移步：https://ai.haruka.cloud\n\n一个简单的项目，让 Crisp 客服系统支持透过 Telegram Bot 来快速回复。  \n使用反馈、功能定制可加群：[https://t.me/dyaogroup](https://t.me/dyaogroup)\n\nPython 版本需求 \u003e= 3.9\n\n## 现有功能\n- 基于 Crisp 客服系统\n- 基于 Telegram 话题群将消息分栏\n- 自动推送文字、图片到指定聊天\n- 支持回复后推送回对应客户\n- 兼容V2B以显示套餐信息\n- 关键词回复以及基于GPT的智能回复\n\n## 计划功能\n- 回复图片功能（需要Crisp订阅）\n\n## 常规使用\n```\n# apt install git 如果你没有git的话\ngit clone https://github.com/DyAxy/Crisp-Telegram-Bot.git\n# 进程常驻可参考 screen 或 nohup 或 systemctl\n# 你需要安装好 pip3 的包管理\ncd Crisp-Telegram-Bot\npip3 install -r requirements.txt\ncp config.yml.example config.yml\nnano config.yml\n# 根据注释中的内容修改配置\npython3 bot.py\n```\n\n## 申请 Telegram Bot Token\n\n1. 私聊 [https://t.me/BotFather](https://https://t.me/BotFather)\n2. 输入 `/newbot`，并为你的bot起一个**响亮**的名字\n3. 接着为你的bot设置一个username，但是一定要以bot结尾，例如：`v2board_bot`\n4. 最后你就能得到bot的token了，看起来应该像这样：`123456789:gaefadklwdqojdoiqwjdiwqdo`\n\n## 创建 Telegram Topic 群\n\n1. 创建一个群聊，并将申请的 Bot 拉进去\n2. 在管理群中，打开话题 (Topic)，并将 Bot 设为管理员\n3. 将 # 的话题设为置顶 (Pin)\n\n## 申请 Crisp 以及 MarketPlace 插件\n\n1. 注册 [https://app.crisp.chat/initiate/signup](https://app.crisp.chat/initiate/signup)\n2. 完成注册后，网站ID在浏览器中即可找到，看起来应该像这样：`https://app.crisp.chat/settings/website/12345678-1234-1234-1234-1234567890ab/`\n3. 其中 `12345678-1234-1234-1234-1234567890ab` 就是网站ID\n4. 前往 MarketPlace， 需要重新注册账号 [https://marketplace.crisp.chat/](https://marketplace.crisp.chat/)\n5. 点击 New Plugin，选择 Private，输入名字以及描述。会获得开发者ID和Key，可能会不够用。\n6. 需要Production Key，点击 Ask a production token，再点击Add a Scope。\n7. 需要 2 条read和write权限：`website:conversation:sessions` 和 `website:conversation:messages`\n8. 保存后即可获得ID和Key，此时点击右上角 Install Plugin on Website 即可。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyaxy%2Fcrisp-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyaxy%2Fcrisp-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyaxy%2Fcrisp-telegram-bot/lists"}