{"id":17967680,"url":"https://github.com/kyubotics/coolq-http-api","last_synced_at":"2025-03-25T08:31:26.308Z","repository":{"id":37396155,"uuid":"80111970","full_name":"kyubotics/coolq-http-api","owner":"kyubotics","description":"为 酷Q 提供通过 HTTP 或 WebSocket 接收事件和调用 API 的能力","archived":true,"fork":false,"pushed_at":"2020-08-02T08:17:37.000Z","size":13025,"stargazers_count":1845,"open_issues_count":14,"forks_count":305,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-03-18T05:12:28.954Z","etag":null,"topics":["api","coolq","cqhttp","http","qq","qqbot","qqrobot"],"latest_commit_sha":null,"homepage":"https://cqhttp.cc/docs/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kyubotics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://afdian.net/@richardchien"]}},"created_at":"2017-01-26T12:18:31.000Z","updated_at":"2025-03-05T10:14:25.000Z","dependencies_parsed_at":"2022-07-12T12:49:44.377Z","dependency_job_id":null,"html_url":"https://github.com/kyubotics/coolq-http-api","commit_stats":null,"previous_names":[],"tags_count":88,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyubotics%2Fcoolq-http-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyubotics%2Fcoolq-http-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyubotics%2Fcoolq-http-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyubotics%2Fcoolq-http-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyubotics","download_url":"https://codeload.github.com/kyubotics/coolq-http-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245426271,"owners_count":20613321,"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":["api","coolq","cqhttp","http","qq","qqbot","qqrobot"],"created_at":"2024-10-29T14:09:16.495Z","updated_at":"2025-03-25T08:31:25.215Z","avatar_url":"https://github.com/kyubotics.png","language":"C++","readme":"# CQHTTP\n\n[![License](https://img.shields.io/github/license/richardchien/coolq-http-api.svg)](https://raw.githubusercontent.com/richardchien/coolq-http-api/master/LICENSE)\n[![Release](https://img.shields.io/github/release/richardchien/coolq-http-api.svg)](https://github.com/richardchien/coolq-http-api/releases)\n[![Download Count](https://img.shields.io/github/downloads/richardchien/coolq-http-api/total.svg)](https://github.com/richardchien/coolq-http-api/releases)\n[![Docker Build Status](https://img.shields.io/travis/richardchien/coolq-http-api.svg?label=docker%20build)](https://travis-ci.org/richardchien/coolq-http-api)\n[![Docker Pulls](https://img.shields.io/docker/pulls/richardchien/cqhttp.svg)](https://hub.docker.com/r/richardchien/cqhttp/)\n[![QQ 群](https://img.shields.io/badge/qq%E7%BE%A4-201865589-orange.svg)](https://jq.qq.com/?_wv=1027\u0026k=5Euplde)\n[![Telegram 群](https://img.shields.io/badge/telegram-chat-blue.svg)](https://t.me/cqhttp)\n\n**由于本人精力有限，且 酷Q 即将停止服务，本项目已停止维护，也不再会开发其它平台的同类插件，感谢大家一直以来的支持和鼓励！**\n\n通过 HTTP 或 WebSocket 对 [酷Q](https://cqp.cc/) 的事件进行上报以及接收请求来调用 酷Q 的 DLL 接口，从而可以使用其它语言编写 酷Q 插件。支持 Windows 7 和 Windows Server 2008 及更新版本，也可以运行在 Wine、Docker。\n\n## 使用方法\n\n使用方法见 [https://cqhttp.cc/docs/](https://cqhttp.cc/docs/)。v1.x、v2.x 的旧版本文档在 [https://cqhttp.cc/docs/legacy/](https://cqhttp.cc/docs/legacy/)。\n\n如果访问这个文档非常慢，请尝试国内的地址 [http://richardchien.gitee.io/coolq-http-api/docs/](http://richardchien.gitee.io/coolq-http-api/docs/)。\n\n## SDK／开发框架\n\n对于下面这些语言的开发者，如果不想自己处理繁杂的请求和解析操作，可以尝试社区中开发者们已经封装好的的 SDK 或开发框架：\n\n| | 语言 | Web 框架 | 通信方式 | 地址 | 核心作者 |\n| --- | --- | --- | --- | --- | --- |\n| ⭐ | Python | Quart | HTTP,\u003cbr\u003e反向 WebSocket | [nonebot/nonebot](https://github.com/nonebot/nonebot) | richardchien\u003cbr\u003eyanyongyu |\n| ⭐ | Python | Quart | HTTP,\u003cbr\u003e反向 WebSocket | [nonebot/aiocqhttp](https://github.com/nonebot/aiocqhttp) | richardchien |\n| ⭐ | Node.js | WebSocket-Node | WebSocket | [momocow/node-cq-websocket](https://github.com/momocow/node-cq-websocket) | momocow |\n| ⭐ | Node.js | Express | HTTP,\u003cbr\u003eWebSocket | [koishijs/koishi](https://github.com/koishijs/koishi) | Shigma |\n|  | Node.js | WebSocket-Node | WebSocket | [CaoMeiYouRen/node-coolq-robot](https://github.com/CaoMeiYouRen/node-coolq-robot) | CaoMeiYouRen |\n|  | Node.js | Express | HTTP | [XHMM/lemon-bot](https://github.com/XHMM/lemon-bot) | XHMM |\n|  | JavaScript | - | WebSocket | [pandolia/js-bot](https://github.com/pandolia/js-bot) | pandolia |\n|  | Deno | 标准库 | 反向 WebSocket | [nenojs/deno-cqhttp](https://github.com/nenojs/deno-cqhttp) | rikakomoe |\n| ⭐ | PHP | Swoole | 反向 WebSocket | [zhamao-robot/zhamao-framework](https://github.com/zhamao-robot/zhamao-framework) | crazywhalecc |\n|  | PHP | - | HTTP | [LovelyA72/YeziiBot-v2](https://github.com/LovelyA72/YeziiBot-v2) | LovelyA72 |\n| ⭐ | Java | 标准库 | HTTP | [HyDevelop/PicqBotX](https://github.com/HyDevelop/PicqBotX) | Hykilpikonna |\n|  | Java\u003cbr\u003eKotlin\u003cbr\u003eGroovy | Spring | 反向 WebSocket | [lz1998/Spring-CQ](https://github.com/lz1998/Spring-CQ)（[教程](https://www.bilibili.com/video/av89649630/)） | lz1998 |\n|  | Java | 标准库 | HTTP | [ForteScarlet/simple-robot-core](https://github.com/ForteScarlet/simple-robot-core) | ForteScarlet |\n|  | Java | JFinal | HTTP | [thevsk/cqhttp-java-jfinal-sdk](https://github.com/thevsk/cqhttp-java-jfinal-sdk) | thevsk |\n|  | Kotlin | 标准库 | HTTP | [JuerGenie/juerobot](https://github.com/JuerGenie/juerobot) | JuerGenie |\n| ⭐ | Go | 标准库 | **API:**\u003cbr\u003eHTTP,\u003cbr\u003eWebSocket\u003cbr\u003e**Event:**\u003cbr\u003eHTTP,\u003cbr\u003e长轮询,\u003cbr\u003eWebSocket,\u003cbr\u003e反向 WebSocket | [catsworld/qq-bot-api](https://github.com/catsworld/qq-bot-api) | catsworld\u003cbr\u003erikakomoe |\n| ⭐ | C# | 标准库 | HTTP,\u003cbr\u003eWebSocket | [int-and-his-friends/Sisters.WudiLib](https://github.com/int-and-his-friends/Sisters.WudiLib) | bleatingsheep |\n| ⭐ | C# | 标准库 | HTTP,\u003cbr\u003eWebSocket,\u003cbr\u003e反向 WebSocket | [frank-bots/cqhttp.Cyan](https://github.com/frank-bots/cqhttp.Cyan) | frankli0324 |\n|  | C# | Fleck | 反向 WebSocket | [cqbef/cqhttp.WebSocketReverse.NETCore](https://github.com/cqbef/cqhttp.WebSocketReverse.NETCore) | cqbef |\n|  | PowerShell | .NET | HTTP | [cqmoe/cqhttp-powershell-sdk](https://github.com/cqmoe/cqhttp-powershell-sdk) | richardchien |\n|  | Lua | lua-http | HTTP,\u003cbr\u003eWebSocket | [cleoold/cqhttp-lua53-sdk](https://github.com/cleoold/cqhttp-lua53-sdk) | cleoold |\n\n## 应用案例\n\nQQ 机器人可以用来做很多有意思的事情，下面列出一些基于本插件的应用案例：\n\n| 项目地址 | 简介 |\n| ------- | --- |\n| [milkice233/efb-qq-slave](https://github.com/milkice233/efb-qq-slave) | 基于 ehForwarderBot 框架的 QQ 从端 |\n| [projectriri/bot-gateway](https://projectriri.github.io/bot-gateway/) | 提供跨聊天平台的通用机器人 API 的机器人消息网关 |\n| [jqqqqqqqqqq/UnifiedMessageRelay](https://github.com/jqqqqqqqqqq/UnifiedMessageRelay) | QQ \u003c-\u003e Telegram Bot Framework \u0026 Forwarder |\n| [Mother-Ship/cabbageWeb](https://github.com/Mother-Ship/cabbageWeb) | 基于 Java Web 的 osu! 游戏数据查询机器人 |\n| [bdbai/Kobirt](https://github.com/bdbai/Kobirt) | Ingress 游戏辅助机器人 |\n| [JRT-FOREVER/hub2coolq](https://github.com/JRT-FOREVER/hub2coolq) | GitHub webhook 消息转发至 QQ 群 |\n| [Kurarion/Bangumi-for-QQ](https://github.com/Kurarion/Bangumi-for-QQ) | 用于在 QQ 平台便捷地使用 Bangumi 部分功能（查寻条目、更新条目进度等） |\n| [rikakomoe/cqhttp-twitter-bot](https://github.com/rikakomoe/cqhttp-twitter-bot) | 自动订阅 Twitter 发送到 QQ |\n| [XiaoLin0815/QQ2TG](https://github.com/XiaoLin0815/QQ2TG) | 帮助 QQ 与 Telegram 互联的小程序 |\n| [spacemeowx2/splatoon2-qqbot](https://github.com/spacemeowx2/splatoon2-qqbot) | 宇宙第一的 Splatoon2 的地图机器人 |\n| [OYMiss/forward-bot](https://github.com/OYMiss/forward-bot) | 用 Telegram 和 QQ 好友聊天的转发机器人 |\n| [mrthanlon/SICNUBOT](https://github.com/mrthanlon/SICNUBOT) | 专为四川师范大学设计用于审核发布消息用的 QQ 机器人 |\n| [billjyc/pocket48](https://github.com/billjyc/pocket48/tree/coolq) | 监控成员口袋 48 聚聚房间、微博和摩点项目 |\n| [chinshin/CQBot_hzx](https://github.com/chinshin/CQBot_hzx) | 摩点 \u0026 微博 \u0026 口袋 48 机器人（BEJ48-黄子璇） |\n| [Ice-Hazymoon/grnd_bot](https://github.com/Ice-Hazymoon/grnd_bot) | 订阅 RSSHub 更新并推送到 QQ 群 |\n| [Ray-Eldath/Avalon](https://github.com/Ray-Eldath/Avalon) | 多功能、可扩展的群机器人，支持 QQ 和 Discord |\n| [Bluefissure/FFXIVBOT](https://github.com/Bluefissure/FFXIVBOT) | 基于 Django Channels 的最终幻想 14 游戏数据查询机器人 |\n| [Milkitic/Daylily](https://github.com/Milkitic/Daylily) | 基于 ASP.NET Core 的跨平台机器人（含快速开发插件框架） |\n| [cczu-osa/aki](https://github.com/cczu-osa/aki) | 基于 NoneBot 的多功能 QQ 机器人 |\n| [cleoold/sendo-erika](https://github.com/cleoold/sendo-erika) | 基于 cqhttp 和 NoneBot 的，主要通过私聊摇控的 QQ 机器人 |\n| [duan602728596/qqtools](https://github.com/duan602728596/qqtools) | 基于 Nwjs 的 QQ 群工具（摩点、口袋 48、微博提醒、入群欢迎、定时喊话、自定义命令和回复信息等） |\n| [Tsuk1ko/CQ-picfinder-robot](https://github.com/Tsuk1ko/CQ-picfinder-robot) | 基于 Saucenao 的搜图机器人 |\n| [kasora/dice](https://github.com/kasora/dice) | COC7 骰子 QQ 机器人 |\n| [shidenggui/tuishujun-for-qq](https://github.com/shidenggui/tuishujun-for-qq) | 基于推书君的小说查询推荐 QQ 机器人 |\n| [JuerGenie/cn.juerwhang.jgbot](https://github.com/JuerGenie/cn.juerwhang.jgbot) | 基于 [JuerGenie/juerobot](https://github.com/JuerGenie/juerobot) 的娱乐用 QQ 机器人 |\n| [drsanwujiang/DiceRobot](https://github.com/drsanwujiang/DiceRobot) | 一个基于 coolq-http-api 插件的 TRPG 骰子机器人 |\n| [UltraSoundX/SDFMU-Library](https://github.com/UltraSoundX/SDFMU-Library) | 山东第一医科大图书馆预约机器人 |\n| [Quan666/ELF_RSS](https://github.com/Quan666/ELF_RSS) | 基于 NoneBot 的，交互式 RSS 订阅、转发机器人 |\n| [lz1998/Spring-CQ-web](https://github.com/lz1998/Spring-CQ-web) | 基于 SpringCQ 的机器人 web 控制台 |\n| [suisei-cn/stargazer-qq](https://github.com/suisei-cn/stargazer-qq) | 一个灵活的 vtuber 发推/直播动态监控机器人 |\n| [Ninzore/Wecab](https://github.com/Ninzore/Wecab) | 网络内容聚合机器人，支持微博、B站、Twitter 等 |\n\n以上列出的只是实际应用中的一小部分，如果你使用本插件编写了任何好的应用案例或开发框架，也可以通过 issue 或 pull request 添加到这里的列表，共同充实社区。\n\n\u003c!-- ## Nightly 版本\n\n如果你急需测试尚未发布的最新特性，可以前往 https://ci.appveyor.com/project/richardchien/coolq-http-api/build/artifacts 下载从 master 分支的最新代码构建出的 DLL 和 JSON 文件，将它们放入 酷Q 的 `app` 文件夹并开启 酷Q 的开发模式即可使用。\n\n**需要注意的是，master 分支所构建出的插件并不确保任何时候都是可用的，可能出现功能存在，但尚未完成的情况。** --\u003e\n\n## 修改、编译\n\n本项目基于 [CoolQ C++ SDK](https://github.com/richardchien/coolq-cpp-sdk)，构建方式和它一致，但由于一些历史原因，需要先手动下载预编译的依赖库，并且使用 **Visual Studio 2019** 和 **MSVC v141** 构建（可以只安装 Build Tools，不必安装完整的 IDE）。\n\n首先，克隆或下载本仓库代码：\n\n```ps1\ngit clone https://github.com/richardchien/coolq-http-api.git\ncd coolq-http-api\ngit submodule init\ngit submodule update\n```\n\n然后，从 [这里](https://richardchien-my.sharepoint.com/:u:/g/personal/i_page_moe/Edh080tNqhZGvB7Qb3CR8k4BLdqEwdWZpmJJmig6qs9bLg?e=5wK22p) 下载 `vcpkg-export-20191012.zip`（也就是预编译的依赖），并解压到当前工程目录，确保工程目录结构如下：\n\n```\ncoolq-http-api\n├── ...\n├── src\n├── vcpkg-export-20191012\n|   ├── installed\n|   ├── scripts\n│   └── .vcpkg-root\n├── CMakeLists.txt\n└── ...\n```\n\n最后生成并构建 CMake 项目：\n\n```ps1\npowershell .\\scripts\\generate.ps1 Debug\npowershell .\\scripts\\build.ps1 Debug\n```\n\n## 开源许可证、重新分发\n\n本程序使用 [GPLv3 许可证](https://github.com/richardchien/coolq-http-api/blob/master/LICENSE)，并按其第 7 节添加如下附加条款：\n\n- 本程序的修改版本应以合理的方式标志为和原版本不同的版本（附加条款 c）\n\n总体来说，在当前许可证下，你可以：\n\n- 修改源代码并自己使用，在**不重新分发**（编译之后的程序）的情况下，没有任何限制\n- 不修改源代码并重新分发，对程序收费或免费提供下载，或提供其它服务，此时你需要保证在明显的地方提供本程序的源码地址并保持协议不变（包括附加条款）\n- 修改源代码并重新分发，对程序收费或免费提供下载，或提供其它服务，此时你需要注明源码修改的地方、提供源码地址、保持协议不变（可删除全部或部分附加条款）、修改程序的名称\n\n## 问题、Bug 反馈、意见和建议\n\n如果使用过程中遇到任何问题、Bug，或有其它意见或建议，欢迎提 [issue](https://github.com/richardchien/coolq-http-api/issues/new)。\n\n也欢迎加入 QQ 交流群 201865589 来和大家讨论～\n\n## 感谢\n\n- 感谢 酷Q 项目，为本插件的存在提供了可能\n- 感谢所有 SDK 作者，扩展了本插件的生态，使用户更容易上手\n- 感谢所有捐助者对我的鼓励，[这里](https://github.com/richardchien/thanks) 列出了捐助者名单（由于一些收款渠道无法知道对方是谁，如有遗漏请联系我修改）\n- 感谢 [sjdy521/Mojo-Webqq](https://github.com/sjdy521/Mojo-Webqq) 项目给本插件的接口设计提供了参考\n- 感谢所有用户反馈的 bug 和建议，使本插件不断完善\n\n## 相似项目\n\n除了 CQHTTP，还有一些其它相似功能的插件：\n\n- [Hstb1230/http-to-cq](https://github.com/Hstb1230/http-to-cq)\n- [LEMOC](https://cqp.cc/t/29722)\n- [yukixz/cqsocketapi](https://github.com/yukixz/cqsocketapi)\n\n除了上述基于 酷Q 平台的插件，还有一些基于其它机器人平台、旨在兼容 CQHTTP 接口的项目，为 QQ 机器人开发社区注入了新的活力：\n\n- [yyuueexxiinngg/cqhttp-mirai](https://github.com/yyuueexxiinngg/cqhttp-mirai)（兼容部分 API）\n- [iTXTech/mirai-native](https://github.com/iTXTech/mirai-native)（通过直接加载 CQHTTP 的 DLL 实现）\n- [Mrs4s/go-cqhttp](https://github.com/Mrs4s/go-cqhttp)（兼容部分 API）\n","funding_links":["https://afdian.net/@richardchien"],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyubotics%2Fcoolq-http-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyubotics%2Fcoolq-http-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyubotics%2Fcoolq-http-api/lists"}