Skip to content

新增发送视频和语音API #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions dev/ex_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,30 @@ API 仅支持 sparkbridge 2.3.4 以上,事件仅支持 sparkbridge 2.3.5 以
- **返回值:**
包含戳一戳数据的对象。

#### video(file)

函数的导出名称:`msgbuilder.video`

返回表示视频消息的对象。

- **参数:**
- `file`(字符串 | Buffer): 视频文件的路径或视频缓冲区。。

- **返回值:**
包含视频数据的对象。

#### record(file)

函数的导出名称:`msgbuilder.record`

返回表示视频消息的对象。

- **参数:**
- `file`(字符串 | Buffer): 语音文件的路径或语音缓冲区。。

- **返回值:**
包含语音数据的对象。

#### reply(id)

函数的导出名称:`msgbuilder.reply`
Expand Down