Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #22 from takayama-lily/dev
Browse files Browse the repository at this point in the history
-
  • Loading branch information
takayama-lily authored Sep 6, 2020
2 parents 1bdc2ea + 423acd1 commit 320b69a
Show file tree
Hide file tree
Showing 9 changed files with 345 additions and 86 deletions.
4 changes: 1 addition & 3 deletions client.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class AndroidClient extends Client {
this.uin = uin;

config = {
platform: 2, //1手机 2平板
platform: 2, //1手机 2平板 3手表(不支持部分群事件)
log_level: "info", //trace,debug,info,warn,error,fatal,off
kickoff: false, //被挤下线是否在3秒后反挤对方
ignore_self: true, //群聊是否无视自己的发言
Expand Down Expand Up @@ -693,8 +693,6 @@ class AndroidClient extends Client {
group_id = parseInt(group_id);
if (!checkUin(group_id))
return buildApiRet(100);
if (!await this.hasGroup(group_id))
return buildApiRet(102);
try {
try {
var packet = await outgoing.buildSendGroupMessageRequestPacket(group_id, message, auto_escape, as_long, this);
Expand Down
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ config说明:
```js
//要使用默认配置请勿传递该字段
const config = {
platform: 2, //登陆类型 1手机 2平板
platform: 2, //登陆类型 1手机 2平板 3手表(不支持部分群事件)
log_level: "info", //日志级别,有trace,debug,info,warn,error,fatal,off
kickoff: false, //被挤下线是否在3秒后反挤对方
ignore_self: true, //群聊是否无视自己的发言
Expand Down
27 changes: 14 additions & 13 deletions docs/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,19 @@

----

|[CQ码]|支持|说明|
|-|-|-|
|at||[CQ:at,qq=123456,text=@ABC] text用来定义@不到时的输出|
|face|◯|表情,[CQ:face,id=104]
|bface|仅解析|
|image||[CQ:image,file=202cb962ac59075b964b07152d234b70123456] 收到的图片<br>[CQ:image,file=C:/123.jpg] 本地图片<br>[CQ:image,cache=0,file=http://abc.com] 网络图片|
|record||发送语音,写法和image一样<br>支持任何格式的音频自动转amr(必须将 [ffmpeg](http://ffmpeg.org/download.html) 加入环境变量path)<br>linux下的ffmpeg不自带amr解码器,可能需要自行编译ffmpeg|
|music||
|video||
|location||
|reply||
|share||
|[CQ码]|||说明|
|-|-|-|-|
|at|||[CQ:at,qq=123456,text=@ABC] text用来定义@不到时的输出|
|face|◯|◯|表情,[CQ:face,id=104]
|bface|||原创表情,[CQ:bface,file=xxxxxxxx,text=摸头]|
|image|||[CQ:image,file=xxxxxxxx,url=xxxxxxxx] 收到的图片<br>[CQ:image,file=C:/123.jpg] 本地图片<br>[CQ:image,cache=0,file=http://abc.com] 网络图片|
|record|||发送语音,写法和image一样<br>支持任何格式的音频自动转amr(必须将 [ffmpeg](http://ffmpeg.org/download.html) 加入环境变量path)<br>linux下的ffmpeg不自带amr解码器,可能需要自行编译ffmpeg|
|flash|◯|◯|闪照,写法和image一样
|music|||
|video|||
|location|||
|reply|||
|share|||

----

Expand All @@ -69,7 +70,7 @@
* 抢红包等金钱相关
* 搜索添加群、搜索添加好友
* 自定义(伪造)消息转发
* 发送卡片消息
* 自定义卡片消息

## 考虑支持的功能

Expand Down
Loading

0 comments on commit 320b69a

Please sign in to comment.