Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
go-cqhttp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
go-cqhttp
Commits
f3b43bc6
Commit
f3b43bc6
authored
Jul 29, 2020
by
Mrs4s
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc update.
parent
57153d2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
4 deletions
+58
-4
docs/cqhttp.md
docs/cqhttp.md
+58
-4
No files found.
docs/cqhttp.md
View file @
f3b43bc6
...
...
@@ -123,7 +123,9 @@ Type: `node`
## API
`/set_group_name`
**设置群名**
### 设置群名
终结点:
`/set_group_name`
**参数**
...
...
@@ -132,7 +134,9 @@ Type: `node`
| group_id | int64 | 群号 |
| name | string | 新名 |
`/get_image`
**获取图片信息**
### 获取图片信息
终结点:
`/get_image`
> 该接口为 CQHTTP 接口修改
...
...
@@ -150,7 +154,9 @@ Type: `node`
|
`filename`
| string | 图片文件原名 |
|
`url`
| string | 图片下载地址 |
`/get_group_msg`
**获取群消息**
### 获取群消息
终结点:
`/get_group_msg`
参数
...
...
@@ -168,7 +174,9 @@ Type: `node`
|
`time`
| int32 | 发送时间 |
|
`content`
| message | 消息内容 |
`/get_forward_msg`
**获取转发消息信息**
### 获取合并转发内容
终结点:
`/get_forward_msg`
参数
...
...
@@ -176,7 +184,53 @@ Type: `node`
| ------------ | ------ | ------ |
|
`message_id`
| string | 消息id |
响应数据
| 字段 | 类型 | 说明 |
| ---------- | ----------------- | -------- |
|
`messages`
| forward message[] | 消息列表 |
响应示例
````
json
{
"data"
:
{
"messages"
:
[
{
"content"
:
"合并转发1"
,
"sender"
:
{
"nick"
:
"发送者A"
,
"user_id"
:
10086
},
"time"
:
1595694374
},
{
"content"
:
"合并转发2[CQ:image,file=xxxx,url=xxxx]"
,
"sender"
:
{
"nick"
:
"发送者B"
,
"user_id"
:
10087
},
"time"
:
1595694393
}
]
},
"retcode"
:
0
,
"status"
:
"ok"
}
````
### 发送合并转发(群)
终结点:
`/send_group_forward_msg`
**参数**
| 字段 | 类型 | 说明 |
| ---------- | -------------- | ---------------------------- |
|
`group_id`
| int64 | 群号 |
|
`messages`
| forward node[] | 自定义转发消息, 具体看CQCode |
###
## 事件
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment