From eee449e5df0a04ac6c301f6235ce5947ae89cc5b Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Sat, 17 Feb 2024 23:19:06 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E6=B7=BB=E5=8A=A0QQ=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E6=9C=BA=E5=99=A8=E4=BA=BA=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/.vuepress/sidebar.ts | 6 +++--- src/posts/deploy/platforms/official.md | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/.vuepress/sidebar.ts b/src/.vuepress/sidebar.ts index 5cb09459b..936f1d4a6 100644 --- a/src/.vuepress/sidebar.ts +++ b/src/.vuepress/sidebar.ts @@ -41,7 +41,7 @@ export default sidebar({ link: "platforms/", children: [ { - text: "mirai", + text: "Mirai", icon: "support", link: "mirai", }, @@ -51,12 +51,12 @@ export default sidebar({ link: "gocq", }, { - text: "shamrock", + text: "OpenShamrock", icon: "mobile", link: "shamrock", }, { - text: "QQ官方机器人", + text: "QQ 官方 API", icon: "network", link: "official", } diff --git a/src/posts/deploy/platforms/official.md b/src/posts/deploy/platforms/official.md index e69de29bb..49b069868 100644 --- a/src/posts/deploy/platforms/official.md +++ b/src/posts/deploy/platforms/official.md @@ -0,0 +1,23 @@ +--- +head: + - - meta + - name: keywords + content: QQ 官方机器人 API 使用教程 +title: 使用 QQ 官方机器人 API 的教程 +icon: support +order: 4 +author: RockChinQ +date: 2024-02-17 +category: + - 部署教程 +--- + +QQ 官方 API 可以将机器人接入 QQ 频道 和 QQ 群,QQ 群 API 只有小部分人有资格使用(23年底参加 腾讯 QQ 机器人大赛),以下仅介绍 QQ 频道 API 的申请和使用。 + +## 注册 QQ 机器人 + +前往[QQ开放平台](https://q.qq.com/#/),找到下方的 QQ 机器人文档,按照指引注册 QQ 频道机器人。 + +## 获取凭证 + +注册完成后,前往机器人控制台,找到 开发设置,获取 `AppId(机器人ID)` 和 `AppSecret(机器人密钥)`,进入配置步骤。 \ No newline at end of file