oicq-icalingua-plus-plus 1.26.20 → 1.26.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  * 本库为 [oicq](https://github.com/takayama-lily/oicq) v1 的第三方维护版,目的是为了使 Icalingua++ 能正常工作。
9
9
  * oicq-icalingua-plus-plus 的诞生离不开 OICQ 原作者 [takayama-lily](https://github.com/takayama-lily) 与其他贡献者的贡献!
10
- * QQ(安卓)协议基于Node.js的实现,支持最低node版本为 v12.16
10
+ * QQ(安卓)协议基于Node.js的实现,支持最低node版本为 v14
11
11
  * 若你不熟悉Node.js或不会组织代码,可通过 [template](https://github.com/takayama-lily/oicq-template) 创建一个简单的应用程序
12
12
  * [API参考文档](https://github.com/takayama-lily/oicq/wiki/91.API%E6%96%87%E6%A1%A3) / [事件参考文档](https://github.com/takayama-lily/oicq/wiki/92.%E4%BA%8B%E4%BB%B6%E6%96%87%E6%A1%A3) / [wiki列表](https://github.com/takayama-lily/oicq/wiki)
13
13
 
package/index.d.ts CHANGED
@@ -1194,6 +1194,8 @@ export class Client extends EventEmitter {
1194
1194
  setGroupRemark(group_id: number, remark: string): Promise<Ret>;
1195
1195
  /** 设置群消息表情回应 */
1196
1196
  setEmojiReaction(group_id: number, msg_seq: number, id: string, type?: number, set?: boolean): Promise<Ret>;
1197
+ /** 群机器人按钮回调 */
1198
+ sendButtonCallback(group_id: number, msg_seq: number, appid: number, id: string, data: string): Promise<Ret>
1197
1199
 
1198
1200
  /** 处理好友请求 */
1199
1201
  setFriendAddRequest(flag: string, approve?: boolean, remark?: string, block?: boolean): Promise<Ret>;
package/lib/client.js CHANGED
@@ -553,8 +553,8 @@ class Client extends EventEmitter {
553
553
  setEmojiReaction(group_id, msg_seq, id, type = 1, set = true) {
554
554
  return this._useProtocol(troop.setEmojiReaction, arguments);
555
555
  }
556
- setButtonReaction(group_id, msg_seq, appid, id, data) {
557
- return this._useProtocol(troop.setButtonReaction, arguments);
556
+ sendButtonCallback(group_id, msg_seq, appid, id, data) {
557
+ return this._useProtocol(troop.sendButtonCallback, arguments);
558
558
  }
559
559
 
560
560
  ///////////////////////////////////////////////////
package/lib/core/troop.js CHANGED
@@ -685,7 +685,7 @@ async function setEmojiReaction(group_id, msg_seq, id, type = 1, set = true) {
685
685
  }
686
686
 
687
687
  /**
688
- * 群机器人按钮回应
688
+ * 群机器人按钮回调
689
689
  * @this {import("./ref").Client}
690
690
  * @param {number} group_id
691
691
  * @param {number} msg_seq
@@ -693,7 +693,7 @@ async function setEmojiReaction(group_id, msg_seq, id, type = 1, set = true) {
693
693
  * @param {string} id
694
694
  * @param {string} data
695
695
  */
696
- async function setButtonReaction(group_id, msg_seq, appid, id, data) {
696
+ async function sendButtonCallback(group_id, msg_seq, appid, id, data) {
697
697
  [group_id] = uinAutoCheck(group_id);
698
698
  const body = pb.encode({
699
699
  3: appid,
@@ -712,5 +712,5 @@ module.exports = {
712
712
  setAdmin, setTitle, setCard, setting, setAnonymous, muteAnonymous, getGroupNotice,
713
713
  kickMember, muteMember, pokeMember, quitGroup, addGroup, inviteFriend,
714
714
  setProfile, setSignature, addFriend, delFriend, setPortrait, setGroupPortrait,
715
- groupSign, getSignature, setGroupRemark, setFriendRemark, setEmojiReaction, setButtonReaction
715
+ groupSign, getSignature, setGroupRemark, setFriendRemark, setEmojiReaction, sendButtonCallback
716
716
  };
@@ -403,6 +403,14 @@ const map = {
403
403
  482: "/热化了",
404
404
  483: "/略",
405
405
  484: "/比爱心",
406
+ 485: "/开学啦",
407
+ 486: "/开学啦2",
408
+ 487: "/开学啦3",
409
+ 488: "/开学大吉",
410
+ 489: "/知识增加",
411
+ 490: "/能送我吗",
412
+ 491: "/自信学霸",
413
+ 492: "/让我细品",
406
414
  };
407
415
 
408
416
  const FACE_OLD_BUF = Buffer.from([0x00, 0x01, 0x00, 0x04, 0x52, 0xCC, 0xF5, 0xD0]);
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "oicq-icalingua-plus-plus",
3
3
  "app_name": "oicq-icalingua-plus-plus",
4
- "version": "1.26.20",
5
- "app_version": "1.26.20",
6
- "upday": "2026/08/17",
4
+ "version": "1.26.22",
5
+ "app_version": "1.26.22",
6
+ "upday": "2026/08/27",
7
7
  "protocol_version": "v11",
8
8
  "description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",
9
9
  "main": "index.js",
@@ -15,7 +15,7 @@
15
15
  "mocha": "./node_modules/.bin/_mocha"
16
16
  },
17
17
  "engines": {
18
- "node": ">= v12.16"
18
+ "node": ">= v14"
19
19
  },
20
20
  "repository": "https://github.com/Icalingua-plus-plus/oicq-icalingua-plus-plus.git",
21
21
  "author": "The Icalingua++ Authors",