oicq-icalingua-plus-plus 1.26.19 → 1.26.20

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/lib/client.js CHANGED
@@ -553,6 +553,9 @@ 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);
558
+ }
556
559
 
557
560
  ///////////////////////////////////////////////////
558
561
 
package/lib/core/troop.js CHANGED
@@ -679,14 +679,38 @@ async function setEmojiReaction(group_id, msg_seq, id, type = 1, set = true) {
679
679
  5: type,
680
680
  });
681
681
  const cmd = set ? "OidbSvcTrpcTcp.0x9082_1" : "OidbSvcTrpcTcp.0x9082_2";
682
- const blob = await this.sendOidb(cmd, body);
682
+ const blob = await this.sendOidbSvcTrpcTcp(cmd, body);
683
683
  const rsp = pb.decode(blob);
684
684
  return { result: rsp[3] };
685
685
  }
686
686
 
687
+ /**
688
+ * 群机器人按钮回应
689
+ * @this {import("./ref").Client}
690
+ * @param {number} group_id
691
+ * @param {number} msg_seq
692
+ * @param {number} appid
693
+ * @param {string} id
694
+ * @param {string} data
695
+ */
696
+ async function setButtonReaction(group_id, msg_seq, appid, id, data) {
697
+ [group_id] = uinAutoCheck(group_id);
698
+ const body = pb.encode({
699
+ 3: appid,
700
+ 4: msg_seq,
701
+ 5: id,
702
+ 6: data,
703
+ 7: 0,
704
+ 8: group_id,
705
+ 9: 1,
706
+ });
707
+ await this.sendOidbSvcTrpcTcp("OidbSvcTrpcTcp.0x112e_1", body);
708
+ return { result: 0 };
709
+ }
710
+
687
711
  module.exports = {
688
712
  setAdmin, setTitle, setCard, setting, setAnonymous, muteAnonymous, getGroupNotice,
689
713
  kickMember, muteMember, pokeMember, quitGroup, addGroup, inviteFriend,
690
714
  setProfile, setSignature, addFriend, delFriend, setPortrait, setGroupPortrait,
691
- groupSign, getSignature, setGroupRemark, setFriendRemark, setEmojiReaction,
715
+ groupSign, getSignature, setGroupRemark, setFriendRemark, setEmojiReaction, setButtonReaction
692
716
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "oicq-icalingua-plus-plus",
3
3
  "app_name": "oicq-icalingua-plus-plus",
4
- "version": "1.26.19",
5
- "app_version": "1.26.19",
4
+ "version": "1.26.20",
5
+ "app_version": "1.26.20",
6
6
  "upday": "2026/08/17",
7
7
  "protocol_version": "v11",
8
8
  "description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",