support send weixin emotion, by @monkeybad
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
|
||||
`i->[昵称或ID]:[图片路径]` 给好友发送图片
|
||||
|
||||
`e->[昵称或ID]:[文件路径]` 给好友发送表情(jpg/gif)
|
||||
|
||||
`quit` 退出程序
|
||||
|
||||

|
||||
@@ -385,6 +387,17 @@ selector:
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
#### 发送 Emoji 表情
|
||||
|
||||
| API | webwxsendmsgemotion |
|
||||
| --- | ------------ |
|
||||
| url | https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendemoticon?fun=sys&f=json&pass_ticket=xxx |
|
||||
| method | POST |
|
||||
| data | JSON |
|
||||
| header | ContentType: application/json; charset=UTF-8 |
|
||||
| params | { <br> BaseRequest: { Uin: xxx, Sid: xxx, Skey: xxx, DeviceID: xxx }, <br> Msg: { <br> Type: 47 `emoji消息`, <br> EmojiFlag: 2, <br> MediaId: `表情上传后的媒体ID`, <br> FromUserName: `自己ID`, <br> ToUserName: `好友ID`, <br> LocalID: `与clientMsgId相同`, <br> ClientMsgId: `时间戳左移4位随后补上4位随机数` <br> } <br> } |
|
||||
|
||||
<br>
|
||||
|
||||
### 图片接口
|
||||
|
||||
Reference in New Issue
Block a user