2
0
mirror of https://gitee.com/hotlcc/wechat4j.git synced 2025-12-25 03:19:39 +08:00

[update] 新增视频消息发送

This commit is contained in:
Allen
2019-04-17 10:18:22 +08:00
committed by lichangchun
parent 11f3b99524
commit a8a2b453ec
15 changed files with 381 additions and 120 deletions

View File

@@ -55,6 +55,23 @@ JSONObject sendImage(String userName, String nickName, String remarkName, byte[]
JSONObject sendImage(String userName, String nickName, String remarkName, File image);
```
### 视频消息
```java
// 通过userName发送视频消息
JSONObject sendVideo(String userName, byte[] mediaData, String mediaName, ContentType contentType);
JSONObject sendVideo(String userName, File image);
// 通过昵称发送视频消息
JSONObject sendVideoToNickName(String nickName, byte[] mediaData, String mediaName, ContentType contentType);
JSONObject sendVideoToNickName(String nickName, File image);
// 通过备注名发送视频消息
JSONObject sendVideoToRemarkName(String remarkName, byte[] mediaData, String mediaName, ContentType contentType);
JSONObject sendVideoToRemarkName(String remarkName, File image);
// 发送视频消息(根据多种名称)
JSONObject sendVideo(String userName, String nickName, String remarkName, byte[] mediaData, String mediaName, ContentType contentType);
JSONObject sendVideo(String userName, String nickName, String remarkName, File image);
```
> 更多消息类型支持尽请期待。
## 消息处理器