Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
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
MyCard
Mirai
Commits
10e70ac3
Commit
10e70ac3
authored
Feb 19, 2020
by
ryoii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct http api readme.md
parent
89c614d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
mirai-api-http/README_CH.md
mirai-api-http/README_CH.md
+18
-10
No files found.
mirai-api-http/README_CH.md
View file @
10e70ac3
...
@@ -16,6 +16,8 @@ fun main() {
...
@@ -16,6 +16,8 @@ fun main() {
}
}
```
```
## 认证相关
## 认证相关
### 开始会话-认证(Authorize)
### 开始会话-认证(Authorize)
...
@@ -141,6 +143,8 @@ fun main() {
...
@@ -141,6 +143,8 @@ fun main() {
> SessionKey与Bot 对应错误时将会返回状态码5:指定对象不存在
> SessionKey与Bot 对应错误时将会返回状态码5:指定对象不存在
## 消息相关
## 消息相关
...
@@ -261,10 +265,10 @@ fun main() {
...
@@ -261,10 +265,10 @@ fun main() {
### 发送图片消息(通过URL)
### 发送图片消息(通过URL)
```
```
[POST] /send
Group
Message
[POST] /send
Image
Message
```
```
使用此方法向指定
群发送
消息
使用此方法向指定
对象(群或好友)发送图片
消息
#### 请求
#### 请求
...
@@ -303,7 +307,7 @@ fun main() {
...
@@ -303,7 +307,7 @@ fun main() {
### 图片文件上传
### 图片文件上传
```
```
[POST] /
sendGroupMess
age
[POST] /
uploadIm
age
```
```
使用此方法上传图片文件至服务器并返回ImageId
使用此方法上传图片文件至服务器并返回ImageId
...
@@ -385,7 +389,7 @@ Content-Type:multipart/form-data
...
@@ -385,7 +389,7 @@ Content-Type:multipart/form-data
+
[x] At,@消息
+
[x] At,@消息
+
[x] AtAll,@全体成员
+
[x] AtAll,@全体成员
+
[
x
] Face,表情消息
+
[
] Face,表情消息
+
[x] Plain,文字消息
+
[x] Plain,文字消息
+
[x] Image,图片消息
+
[x] Image,图片消息
+
[ ] Xml,Xml卡片消息
+
[ ] Xml,Xml卡片消息
...
@@ -409,15 +413,13 @@ Content-Type:multipart/form-data
...
@@ -409,15 +413,13 @@ Content-Type:multipart/form-data
```
json5
```
json5
{
{
"type": "At",
"type": "At",
"target": 123456,
"target": 123456
"display": "@Mirai"
}
}
```
```
| 名字 | 类型 | 说明 |
| 名字 | 类型 | 说明 |
| ------- | ------ | ------------------------- |
| ------ | ---- | -------- |
| target | Long | 群员QQ号 |
| target | Long | 群员QQ号 |
| display | String | @时显示的文本如:"@Mirai" |
#### AtAll
#### AtAll
...
@@ -517,6 +519,7 @@ Content-Type:multipart/form-data
...
@@ -517,6 +519,7 @@ Content-Type:multipart/form-data
```
```
### 获取群列表
### 获取群列表
使用此方法获取bot的群列表
使用此方法获取bot的群列表
...
@@ -786,6 +789,8 @@ Content-Type:multipart/form-data
...
@@ -786,6 +789,8 @@ Content-Type:multipart/form-data
}
}
```
```
### 获取群设置
### 获取群设置
使用此方法获取群设置
使用此方法获取群设置
...
@@ -816,6 +821,7 @@ Content-Type:multipart/form-data
...
@@ -816,6 +821,7 @@ Content-Type:multipart/form-data
```
```
### 修改群员资料
### 修改群员资料
使用此方法修改群员资料(需要有相关限权)
使用此方法修改群员资料(需要有相关限权)
...
@@ -856,6 +862,8 @@ Content-Type:multipart/form-data
...
@@ -856,6 +862,8 @@ Content-Type:multipart/form-data
}
}
```
```
### 获取群员资料
### 获取群员资料
使用此方法获取群员资料
使用此方法获取群员资料
...
...
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