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
508117d3
Commit
508117d3
authored
Oct 20, 2020
by
wdvxdr
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/dev' into dev
parents
98b9be57
1c965ab9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
2 deletions
+50
-2
coolq/api.go
coolq/api.go
+1
-1
docs/cqhttp.md
docs/cqhttp.md
+49
-1
No files found.
coolq/api.go
View file @
508117d3
...
@@ -662,7 +662,7 @@ func (bot *CQBot) CQGetMessage(messageId int32) MSG {
...
@@ -662,7 +662,7 @@ func (bot *CQBot) CQGetMessage(messageId int32) MSG {
"nickname"
:
sender
.
Nickname
,
"nickname"
:
sender
.
Nickname
,
},
},
"time"
:
msg
[
"time"
],
"time"
:
msg
[
"time"
],
"
content
"
:
msg
[
"message"
],
"
message
"
:
msg
[
"message"
],
})
})
}
}
...
...
docs/cqhttp.md
View file @
508117d3
...
@@ -472,6 +472,35 @@ Type: `tts`
...
@@ -472,6 +472,35 @@ Type: `tts`
| ---------- | ----------------- | -------- |
| ---------- | ----------------- | -------- |
|
`slices`
| string[] | 词组 |
|
`slices`
| string[] | 词组 |
### 图片OCR
> 注意: 目前图片OCR接口仅支持接受的图片
终结点:
`/.ocr_image`
**参数**
| 字段 | 类型 | 说明 |
| ------------ | ------ | ------ |
|
`image`
| string | 图片ID |
**响应数据**
| 字段 | 类型 | 说明 |
| ---------- | ----------------- | -------- |
|
`texts`
| TextDetection[] | OCR结果 |
|
`language`
| string | 语言 |
**TextDetection**
| 字段 | 类型 | 说明 |
| ---------- | ----------------- | -------- |
|
`text`
| string | 文本 |
|
`confidence`
| int32 | 置信度 |
|
`coordinates`
| vector2 | 坐标 |
## 事件
## 事件
#### 群消息撤回
#### 群消息撤回
...
@@ -558,4 +587,23 @@ Type: `tts`
...
@@ -558,4 +587,23 @@ Type: `tts`
|
`card_new`
| int64 | | 新名片 |
|
`card_new`
| int64 | | 新名片 |
|
`card_old`
| int64 | | 旧名片 |
|
`card_old`
| int64 | | 旧名片 |
> PS: 当名片为空时 `card_xx` 字段为空字符串, 并不是昵称
> PS: 当名片为空时 `card_xx` 字段为空字符串, 并不是昵称
\ No newline at end of file
#### 接收到离线文件
**上报数据**
| 字段 | 类型 | 可能的值 | 说明 |
| ------------- | ------ | -------------- | -------------- |
|
`post_type`
| string |
`notice`
| 上报类型 |
|
`notice_type`
| string |
`offline_file`
| 消息类型 |
|
`user_id`
| int64 | | 发送者id |
|
`file`
| object | | 文件数据 |
**file object**
| 字段 | 类型 | 可能的值 | 说明 |
| ------------- | ------ | -------------- | -------------- |
|
`name`
| string | | 文件名 |
|
`size`
| int64 | | 文件大小 |
|
`url`
| string | | 下载链接 |
\ No newline at end of file
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