wx2tg-puppet 2.1.5 → 2.1.6

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.
@@ -185,7 +185,7 @@ const say = (content, toWxid, ats) => __awaiter(void 0, void 0, void 0, function
185
185
  if (res.data.Code !== 0) {
186
186
  throw new Error(`发送视频失败: ${res.data.Message}`);
187
187
  }
188
- return new Message_1.ResponseMsg(res.data.Data.List[0]);
188
+ return new Message_1.ResponseMsg(res.data.Data);
189
189
  }
190
190
  else if (content instanceof VOICE_1.Voice) {
191
191
  const res = yield MsgApi_1.msgApi.SendVoice({
@@ -198,7 +198,7 @@ const say = (content, toWxid, ats) => __awaiter(void 0, void 0, void 0, function
198
198
  if (res.data.Code !== 0) {
199
199
  throw new Error(`发送语音失败: ${res.data.Message}`);
200
200
  }
201
- return new Message_1.ResponseMsg(res.data.Data.List[0]);
201
+ return new Message_1.ResponseMsg(res.data.Data);
202
202
  }
203
203
  // }else if(content instanceof MiniApp){
204
204
  // return SendMiniApp({
@@ -614,7 +614,7 @@ class ResponseMsg {
614
614
  constructor(obj) {
615
615
  var _a, _b;
616
616
  this.newMsgId = (obj.NewMsgId || obj.newMsgId || obj.Newmsgid) + '';
617
- this.msgId = (obj.ClientMsgid || obj.clientMsgId || obj.Msgid || obj.msgId) ? (obj.ClientMsgid || obj.clientMsgId || obj.Msgid || obj.msgId) + '' : '';
617
+ this.msgId = (obj.ClientMsgid || obj.clientMsgId || obj.ClientMsgId || obj.Msgid || obj.msgId) ? (obj.ClientMsgid || obj.clientMsgId || obj.ClientMsgId || obj.Msgid || obj.msgId) + '' : '';
618
618
  this.createTime = obj.Createtime || obj.createTime || obj.CreateTime;
619
619
  this.toWxid = ((_a = obj.ToUsetName) === null || _a === void 0 ? void 0 : _a.string) || ((_b = obj.ToUserName) === null || _b === void 0 ? void 0 : _b.string) || obj.toUserName;
620
620
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wx2tg-puppet",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [