@juzi/wechaty 1.0.71 → 1.0.72

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.
Files changed (65) hide show
  1. package/dist/cjs/src/package-json.js +4 -4
  2. package/dist/cjs/src/user-modules/chat-history.d.ts +39 -0
  3. package/dist/cjs/src/user-modules/chat-history.d.ts.map +1 -0
  4. package/dist/cjs/src/user-modules/chat-history.js +91 -0
  5. package/dist/cjs/src/user-modules/chat-history.js.map +1 -0
  6. package/dist/cjs/src/user-modules/message.d.ts +2 -0
  7. package/dist/cjs/src/user-modules/message.d.ts.map +1 -1
  8. package/dist/cjs/src/user-modules/message.js +11 -0
  9. package/dist/cjs/src/user-modules/message.js.map +1 -1
  10. package/dist/cjs/src/user-modules/mod.d.ts +4 -3
  11. package/dist/cjs/src/user-modules/mod.d.ts.map +1 -1
  12. package/dist/cjs/src/user-modules/mod.js +3 -1
  13. package/dist/cjs/src/user-modules/mod.js.map +1 -1
  14. package/dist/cjs/src/wechaty/wechaty-base.d.ts +10 -115
  15. package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
  16. package/dist/cjs/src/wechaty/wechaty-impl.spec.js +3 -1
  17. package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
  18. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +6 -12
  19. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  20. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +6 -0
  21. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  22. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +8 -0
  23. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  24. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +4 -0
  25. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  26. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -2
  27. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  28. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +3 -0
  29. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  30. package/dist/esm/src/package-json.js +4 -4
  31. package/dist/esm/src/user-modules/chat-history.d.ts +39 -0
  32. package/dist/esm/src/user-modules/chat-history.d.ts.map +1 -0
  33. package/dist/esm/src/user-modules/chat-history.js +65 -0
  34. package/dist/esm/src/user-modules/chat-history.js.map +1 -0
  35. package/dist/esm/src/user-modules/message.d.ts +2 -0
  36. package/dist/esm/src/user-modules/message.d.ts.map +1 -1
  37. package/dist/esm/src/user-modules/message.js +11 -0
  38. package/dist/esm/src/user-modules/message.js.map +1 -1
  39. package/dist/esm/src/user-modules/mod.d.ts +4 -3
  40. package/dist/esm/src/user-modules/mod.d.ts.map +1 -1
  41. package/dist/esm/src/user-modules/mod.js +2 -1
  42. package/dist/esm/src/user-modules/mod.js.map +1 -1
  43. package/dist/esm/src/wechaty/wechaty-base.d.ts +10 -115
  44. package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
  45. package/dist/esm/src/wechaty/wechaty-impl.spec.js +3 -1
  46. package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
  47. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +6 -12
  48. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  49. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +6 -0
  50. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  51. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +8 -0
  52. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  53. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +4 -0
  54. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  55. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -2
  56. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  57. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +4 -1
  58. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  59. package/package.json +3 -3
  60. package/src/package-json.ts +4 -4
  61. package/src/user-modules/chat-history.ts +99 -0
  62. package/src/user-modules/message.ts +16 -0
  63. package/src/user-modules/mod.ts +8 -0
  64. package/src/wechaty/wechaty-impl.spec.ts +3 -0
  65. package/src/wechaty-mixins/wechatify-user-module-mixin.ts +7 -1
@@ -1 +1 @@
1
- {"version":3,"file":"wechaty-base.d.ts","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-base.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAQ9C,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACR,MAAkC,mBAAmB,CAAA;AAWtD,OAAO,EACL,eAAe,EAChB,MAAkC,uBAAuB,CAAA;AAC1D,OAAO,KAAK,EACV,gBAAgB,EACjB,MAAkC,mBAAmB,CAAA;AACtD,OAAO,KAAK,EACV,cAAc,EACf,MAAkC,+BAA+B,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoCf;;;;;;;;;;;;;;;;;;;;;;OAsBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAtBH;;;;;;;;;;;;;;;;;;;;;;OAsBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAtBH;;;;;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,WAAW,GACZ,CAAA"}
@@ -27,6 +27,7 @@ const wechaty_impl_js_1 = require("./wechaty-impl.js");
27
27
  Channel;
28
28
  Moment;
29
29
  CallRecord;
30
+ ChatHistory;
30
31
  constructor() {
31
32
  super();
32
33
  // this.puppet
@@ -47,7 +48,8 @@ const wechaty_impl_js_1 = require("./wechaty-impl.js");
47
48
  = this.Channel
48
49
  = this.Moment
49
50
  = this.CallRecord
50
- = {};
51
+ = this.ChatHistory
52
+ = {};
51
53
  }
52
54
  }
53
55
  const WechatyTest = WechatyImplementation;
@@ -1 +1 @@
1
- {"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";;;;;;AACA,mCAA6B;AAC7B,oFAAkD;AAElD,oEAAkE;AAuBlE,uDAMgD;AAEhD,IAAA,aAAI,EAAC,mBAAmB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAClC,MAAe,qBAAsB,SAAQ,uCAAmB;QAE9D,OAAO,CAA4B;QACnC,WAAW,CAA4B;QACvC,KAAK,CAA4B;QACjC,UAAU,CAA4B;QACtC,KAAK,CAA4B;QACjC,QAAQ,CAA4B;QACpC,OAAO,CAA4B;QACnC,WAAW,CAA4B;QACvC,IAAI,CAA4B;QAChC,IAAI,CAA4B;QAChC,cAAc,CAA4B;QAC1C,GAAG,CAA4B;QAC/B,QAAQ,CAA4B;QACpC,OAAO,CAA4B;QACnC,OAAO,CAA4B;QACnC,MAAM,CAA4B;QAClC,UAAU,CAA4B;QAEtC;YACE,KAAK,EAAE,CAAA;YACP,cAAc;YACd,IAAI,CAAC,OAAO;kBACR,IAAI,CAAC,WAAW;sBAChB,IAAI,CAAC,KAAK;0BACV,IAAI,CAAC,UAAU;8BACf,IAAI,CAAC,KAAK;kCACV,IAAI,CAAC,QAAQ;sCACb,IAAI,CAAC,OAAO;0CACZ,IAAI,CAAC,WAAW;8CAChB,IAAI,CAAC,IAAI;kDACT,IAAI,CAAC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AAO,CAAC,MAAM,EAAE,4DAA4D,CAAC,CAAA;AACpF,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";;;;;;AACA,mCAA6B;AAC7B,oFAAkD;AAElD,oEAAkE;AAwBlE,uDAMgD;AAEhD,IAAA,aAAI,EAAC,mBAAmB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAClC,MAAe,qBAAsB,SAAQ,uCAAmB;QAE9D,OAAO,CAA4B;QACnC,WAAW,CAA4B;QACvC,KAAK,CAA4B;QACjC,UAAU,CAA4B;QACtC,KAAK,CAA4B;QACjC,QAAQ,CAA4B;QACpC,OAAO,CAA4B;QACnC,WAAW,CAA4B;QACvC,IAAI,CAA4B;QAChC,IAAI,CAA4B;QAChC,cAAc,CAA4B;QAC1C,GAAG,CAA4B;QAC/B,QAAQ,CAA4B;QACpC,OAAO,CAA4B;QACnC,OAAO,CAA4B;QACnC,MAAM,CAA4B;QAClC,UAAU,CAA4B;QACtC,WAAW,CAA4B;QAEvC;YACE,KAAK,EAAE,CAAA;YACP,cAAc;YACd,IAAI,CAAC,OAAO;kBACR,IAAI,CAAC,WAAW;sBAChB,IAAI,CAAC,KAAK;0BACV,IAAI,CAAC,UAAU;8BACf,IAAI,CAAC,KAAK;kCACV,IAAI,CAAC,QAAQ;sCACb,IAAI,CAAC,OAAO;0CACZ,IAAI,CAAC,WAAW;8CAChB,IAAI,CAAC,IAAI;kDACT,IAAI,CAAC,IAAI;sDACT,IAAI,CAAC,cAAc;0DACnB,IAAI,CAAC,GAAG;8DACR,IAAI,CAAC,QAAQ;kEACb,IAAI,CAAC,OAAO;sEACZ,IAAI,CAAC,OAAO;0EACZ,IAAI,CAAC,MAAM;8EACX,IAAI,CAAC,UAAU;kFACf,IAAI,CAAC,WAAW;sFAChB,EAAS,CAAA;QACf,CAAC;KA6BF;IAED,MAAM,WAAW,GAAG,qBAAsD,CAAA;IAC1E,MAAM,CAAC,GAAqB,IAAI,WAAW,EAAE,CAAA;IAC7C,CAAC,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,GAAqB,EAAE,EAAE;QACxC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IACpC,CAAC,CAAC,CAAA;IAEF,CAAC,CAAC,EAAE,CAAC,OAAO,qBAAqB,EAAE,wBAAwB,CAAC,CAAA;AAC9D,CAAC,CAAC,CAAA;AAEF,IAAA,aAAI,EAAC,qBAAqB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAIpC,MAAM,SAAS,GAAiB,IAAI,CAAA;IACpC,CAAC,CAAC,EAAE,CAAC,SAAS,EAAE,8DAA8D,CAAC,CAAA;AACjF,CAAC,CAAC,CAAA;AAEF,IAAA,aAAI,EAAC,+BAA+B,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAC9C,MAAM,MAAM,GAAI,IAAI,6BAAU,EAAS,CAAA;IACvC,MAAM,OAAO,GAAG,IAAI,6BAAW,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;IAC3C,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,sDAAsD,CAAC,CAAA;IAEtF,MAAM,OAAO,CAAC,IAAI,EAAE,CAAA;IACpB,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,yDAAyD,CAAC,CAAA;IAC/F,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,4DAA4D,CAAC,CAAA;AACpF,CAAC,CAAC,CAAA"}
@@ -28,13 +28,10 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
28
28
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
29
29
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
30
30
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
31
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
31
32
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
32
33
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
33
34
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
34
- /**
35
- * Will be removed after Dec 31, 2022
36
- * @deprecated use {@link Wechaty#currentUser} instead
37
- */
38
35
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
39
36
  readonly Image: import("../user-modules/image.js").ImageConstructor;
40
37
  readonly Location: import("../user-modules/location.js").LocationConstructor;
@@ -49,6 +46,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
49
46
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
50
47
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
51
48
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
49
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
52
50
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
53
51
  readonly id: string;
54
52
  __memory?: import("memory-card").MemoryCard | undefined;
@@ -95,13 +93,10 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
95
93
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
96
94
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
97
95
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
96
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
98
97
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
99
98
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
100
99
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
101
- /**
102
- * Will be removed after Dec 31, 2022
103
- * @deprecated use {@link Wechaty#currentUser} instead
104
- */
105
100
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
106
101
  readonly Image: import("../user-modules/image.js").ImageConstructor;
107
102
  readonly Location: import("../user-modules/location.js").LocationConstructor;
@@ -116,6 +111,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
116
111
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
117
112
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
118
113
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
114
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
119
115
  init(): Promise<void>;
120
116
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
121
117
  readonly id: string;
@@ -292,13 +288,10 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
292
288
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
293
289
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
294
290
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
291
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
295
292
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
296
293
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
297
294
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
298
- /**
299
- * Will be removed after Dec 31, 2022
300
- * @deprecated use {@link Wechaty#currentUser} instead
301
- */
302
295
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
303
296
  readonly Image: import("../user-modules/image.js").ImageConstructor;
304
297
  readonly Location: import("../user-modules/location.js").LocationConstructor;
@@ -313,6 +306,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
313
306
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
314
307
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
315
308
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
309
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
316
310
  wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
317
311
  emitError(e: any): void;
318
312
  __io?: import("../io.js").Io | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmFZ;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAHH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAtCmB,GAAG,EAAE;;IAvC3B;;;;;;;OAOG;;IAMH;;;;;;;;;;OAUG;;;YAqBqB,QAAQ,IAAI,CAAC;IAUrC;;;;;;OAMG;cACc,QAAQ,IAAI,CAAC;IAK9B;;OAEG;gBACU,OAAO;IAKpB;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAHH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;cAWN,CAAA;AAED,aAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAE/C,aAAK,2BAA2B,GAC5B,UAAU,GACV,UAAU,GACV,oBAAoB,CAAA;AAExB,YAAY,EACV,UAAU,EACV,2BAA2B,GAC5B,CAAA;AACD,OAAO,EACL,UAAU,GACX,CAAA"}
1
+ {"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAgDU,GAAG,EAAE;;IAvC3B;;;;;;;OAOG;;IAMH;;;;;;;;;;OAUG;;;YAqBqB,QAAQ,IAAI,CAAC;IAUrC;;;;;;OAMG;cACc,QAAQ,IAAI,CAAC;IAK9B;;OAEG;gBACU,OAAO;IAKpB;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWN,CAAA;AAED,aAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAE/C,aAAK,2BAA2B,GAC5B,UAAU,GACV,UAAU,GACV,oBAAoB,CAAA;AAExB,YAAY,EACV,UAAU,EACV,2BAA2B,GAC5B,CAAA;AACD,OAAO,EACL,UAAU,GACX,CAAA"}
@@ -27,6 +27,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
27
27
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
28
28
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
29
29
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
30
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
30
31
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
31
32
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
32
33
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -44,6 +45,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
44
45
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
45
46
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
46
47
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
48
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
47
49
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
48
50
  readonly id: string;
49
51
  __memory?: import("memory-card").MemoryCard | undefined;
@@ -92,6 +94,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
92
94
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
93
95
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
94
96
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
97
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
95
98
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
96
99
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
97
100
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -109,6 +112,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
109
112
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
110
113
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
111
114
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
115
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
112
116
  init(): Promise<void>;
113
117
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
114
118
  readonly id: string;
@@ -280,6 +284,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
280
284
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
281
285
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
282
286
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
287
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
283
288
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
284
289
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
285
290
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -297,6 +302,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
297
302
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
298
303
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
299
304
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
305
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
300
306
  wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
301
307
  emitError(e: any): void;
302
308
  __io?: import("../io.js").Io | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"misc-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/misc-mixin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAQ,mBAAmB,CAAA;AAK1D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAuDX;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;sDApDmB,GAAG,EAAE;IAI3B;;OAEG;;IAcH;;;OAGG;;I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A;AAE7C,aAAK,0BAA0B,GAAG,KAAK,CAAA;AAEvC,YAAY,EACV,SAAS,EACT,0BAA0B,GAC3B,CAAA;AACD,OAAO,EACL,SAAS,GACV,CAAA"}
@@ -105,6 +105,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
105
105
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
106
106
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
107
107
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
108
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
108
109
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
109
110
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
110
111
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -122,6 +123,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
122
123
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
123
124
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
124
125
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
126
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
125
127
  wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
126
128
  emitError(e: any): void;
127
129
  __io?: import("../io.js").Io | undefined;
@@ -157,6 +159,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
157
159
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
158
160
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
159
161
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
162
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
160
163
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
161
164
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
162
165
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -174,6 +177,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
174
177
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
175
178
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
176
179
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
180
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
177
181
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
178
182
  readonly id: string;
179
183
  __memory?: import("memory-card").MemoryCard | undefined;
@@ -220,6 +224,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
220
224
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
221
225
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
222
226
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
227
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
223
228
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
224
229
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
225
230
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -237,6 +242,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
237
242
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
238
243
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
239
244
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
245
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
240
246
  init(): Promise<void>;
241
247
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
242
248
  readonly id: string;
@@ -390,6 +396,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
390
396
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
391
397
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
392
398
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
399
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
393
400
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
394
401
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
395
402
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -407,6 +414,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
407
414
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
408
415
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
409
416
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
417
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
410
418
  __io?: import("../io.js").Io | undefined;
411
419
  readonly io: import("../io.js").Io;
412
420
  __ioToken?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/plugin-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACzB,MAAkC,cAAc,CAAA;AAKjD,OAAO,KAAK,EACV,eAAe,EAChB,MAA4B,mBAAmB,CAAA;AAKhD,UAAU,QAAQ;IAChB,GAAG,CACD,GAAG,OAAO,EAAE,CACR,aAAa,GACb,aAAa,EAAE,CAClB,EAAE,GACF,wBAAwB,CAAA;CAC5B;AAED,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASb;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAtBmB,GAAG,EAAE;IAI3B;;;;;;;;;;;;;;;;;;OAkBG;oBAEW,CACV,aAAa,GAAG,aAAa,EAAE,CAChC,EAAE,GACF,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAvB3B;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCN,CAAA;AAED,aAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAEjD,aAAK,4BAA4B,GAAG,KAAK,CAAA;AAEzC,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,WAAW,GACZ,CAAA"}
@@ -26,6 +26,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
26
26
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
27
27
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
28
28
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
29
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
29
30
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
30
31
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
31
32
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -43,6 +44,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
43
44
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
44
45
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
45
46
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
47
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
46
48
  init(): Promise<void>;
47
49
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
48
50
  readonly id: string;
@@ -158,6 +160,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
158
160
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
159
161
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
160
162
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
163
+ __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
161
164
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
162
165
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
163
166
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -175,6 +178,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
175
178
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
176
179
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
177
180
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
181
+ readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
178
182
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
179
183
  readonly id: string;
180
184
  __memory?: import("memory-card").MemoryCard | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"puppet-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/puppet-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAW,sBAAsB,CAAA;AAQnD,OAAO,EAEL,gBAAgB,EAChB,oBAAoB,EACrB,MAAO,cAAc,CAAA;AAuBtB;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAqBS,GAAG,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AAC,OAAO,WAAW,CAAC,CAAA;AAEjD,aAAK,4BAA4B,GAC7B,UAAU,GACV,cAAc,GACd,qBAAqB,GACrB,kBAAkB,CAAA;AAEtB,YAAY,EACV,WAAW,EACX,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, MomentConstructor, CallRecordConstructor } from '../user-modules/mod.js';
1
+ import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, MomentConstructor, CallRecordConstructor, ChatHistoryConstructor } from '../user-modules/mod.js';
2
2
  import type { WechatySkeleton } from '../wechaty/mod.js';
3
3
  declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleton>(mixinBase: MixinBase) => ((abstract new (...args: any[]) => {
4
4
  __wechatifiedContact?: ContactConstructor | undefined;
@@ -18,6 +18,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
18
18
  __wechatifiedChannel?: ChannelConstructor | undefined;
19
19
  __wechatifiedMoment?: MomentConstructor | undefined;
20
20
  __wechatifiedCallRecord?: CallRecordConstructor | undefined;
21
+ __wechatifiedChatHistory?: ChatHistoryConstructor | undefined;
21
22
  readonly Contact: ContactConstructor;
22
23
  readonly ContactSelf: ContactSelfConstructor;
23
24
  readonly Delay: DelayConstructor;
@@ -35,6 +36,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
35
36
  readonly Channel: ChannelConstructor;
36
37
  readonly Moment: MomentConstructor;
37
38
  readonly CallRecord: CallRecordConstructor;
39
+ readonly ChatHistory: ChatHistoryConstructor;
38
40
  init(): Promise<void>;
39
41
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
40
42
  readonly id: string;
@@ -63,7 +65,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
63
65
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
64
66
  }) & MixinBase;
65
67
  declare type WechatifyUserModuleMixin = ReturnType<typeof wechatifyUserModuleMixin>;
66
- declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedMoment' | '__wechatifiedCallRecord';
68
+ declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedMoment' | '__wechatifiedCallRecord' | '__wechatifiedChatHistory';
67
69
  export type { WechatifyUserModuleMixin, ProtectedPropertyWechatifyUserModuleMixin, };
68
70
  export { wechatifyUserModuleMixin, };
69
71
  //# sourceMappingURL=wechatify-user-module-mixin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wechatify-user-module-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,EAmBL,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EAGtB,MAA4B,wBAAwB,CAAA;AAErD,OAAO,KAAK,EACV,eAAe,EAChB,MAAkC,mBAAmB,CAAA;AAEtD,QAAA,MAAM,wBAAwB,+FAKJ,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyCH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cA4CxC,CAAA;AAYD,aAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE3E,aAAK,yCAAyC,GAC1C,sBAAsB,GACtB,0BAA0B,GAC1B,oBAAoB,GACpB,yBAAyB,GACzB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,0BAA0B,GAC1B,mBAAmB,GACnB,6BAA6B,GAC7B,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,sBAAsB,GACtB,qBAAqB,GACrB,yBAAyB,CAAA;AAE7B,YAAY,EACV,wBAAwB,EACxB,yCAAyC,GAC1C,CAAA;AACD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
1
+ {"version":3,"file":"wechatify-user-module-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,EAoBL,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EAGvB,MAA4B,wBAAwB,CAAA;AAErD,OAAO,KAAK,EACV,eAAe,EAChB,MAAkC,mBAAmB,CAAA;AAEtD,QAAA,MAAM,wBAAwB,+FAKJ,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2CH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cA6CxC,CAAA;AAYD,aAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE3E,aAAK,yCAAyC,GAC1C,sBAAsB,GACtB,0BAA0B,GAC1B,oBAAoB,GACpB,yBAAyB,GACzB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,0BAA0B,GAC1B,mBAAmB,GACnB,6BAA6B,GAC7B,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,sBAAsB,GACtB,qBAAqB,GACrB,yBAAyB,GACzB,0BAA0B,CAAA;AAE9B,YAAY,EACV,wBAAwB,EACxB,yCAAyC,GAC1C,CAAA;AACD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
@@ -27,6 +27,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
27
27
  __wechatifiedChannel;
28
28
  __wechatifiedMoment;
29
29
  __wechatifiedCallRecord;
30
+ __wechatifiedChatHistory;
30
31
  get Contact() { return guardWechatify(this.__wechatifiedContact); }
31
32
  get ContactSelf() { return guardWechatify(this.__wechatifiedContactSelf); }
32
33
  get Delay() { return guardWechatify(this.__wechatifiedDelay); }
@@ -44,6 +45,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
44
45
  get Channel() { return guardWechatify(this.__wechatifiedChannel); }
45
46
  get Moment() { return guardWechatify(this.__wechatifiedMoment); }
46
47
  get CallRecord() { return guardWechatify(this.__wechatifiedCallRecord); }
48
+ get ChatHistory() { return guardWechatify(this.__wechatifiedChatHistory); }
47
49
  async init() {
48
50
  wechaty_puppet_1.log.verbose('WechatifyUserModuleMixin', 'init()');
49
51
  await super.init();
@@ -78,6 +80,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
78
80
  this.__wechatifiedChannel = (0, mod_js_1.wechatifyUserModule)(mod_js_1.ChannelImpl)(this);
79
81
  this.__wechatifiedMoment = (0, mod_js_1.wechatifyUserModule)(mod_js_1.MomentImpl)(this);
80
82
  this.__wechatifiedCallRecord = (0, mod_js_1.wechatifyUserModule)(mod_js_1.CallRecordImpl)(this);
83
+ this.__wechatifiedChatHistory = (0, mod_js_1.wechatifyUserModule)(mod_js_1.ChatHistoryImpl)(this);
81
84
  wechaty_puppet_1.log.verbose('WechatifyUserModuleMixin', 'init() initializing Wechaty User Module (WUM) ... done');
82
85
  }
83
86
  }
@@ -1 +1 @@
1
- {"version":3,"file":"wechatify-user-module-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":";;;AAAA,yDAAmD;AAEnD,mDAsCqD;AAMrD,MAAM,wBAAwB,GAAG,CAA4C,SAAoB,EAAE,EAAE;IACnG,oBAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,8BAA8B,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAEvF,MAAe,wBAAyB,SAAQ,SAAS;QAEvD,YAAa,GAAG,IAAW;YACzB,oBAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,eAAe,CAAC,CAAA;YACxD,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;QAChB,CAAC;QAED,oBAAoB,CAA6B;QACjD,wBAAwB,CAA6B;QACrD,kBAAkB,CAA6B;QAC/C,uBAAuB,CAA6B;QACpD,kBAAkB,CAA6B;QAC/C,qBAAqB,CAA6B;QAClD,oBAAoB,CAA6B;QACjD,wBAAwB,CAA6B;QACrD,iBAAiB,CAA6B;QAC9C,iBAAiB,CAA6B;QAC9C,2BAA2B,CAA6B;QACxD,gBAAgB,CAA6B;QAC7C,qBAAqB,CAA6B;QAClD,oBAAoB,CAA6B;QACjD,oBAAoB,C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U,CAAA;KAClB;IACD,MAAM,IAAI,KAAK,CAAC,8FAA8F,CAAC,CAAA;AACjH,CAAC"}
1
+ {"version":3,"file":"wechatify-user-module-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":";;;AAAA,yDAAmD;AAEnD,mDAwCqD;AAMrD,MAAM,wBAAwB,GAAG,CAA4C,SAAoB,EAAE,EAAE;IACnG,oBAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,8BAA8B,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAEvF,MAAe,wBAAyB,SAAQ,SAAS;QAEvD,YAAa,GAAG,IAAW;YACzB,oBAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,eAAe,CAAC,CAAA;YACxD,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;QAChB,CAAC;QAED,oBAAoB,CAA6B;QACjD,wBAAwB,CAA6B;QACrD,kBAAkB,CAA6B;QAC/C,uBAAuB,CAA6B;QACpD,kBAAkB,CAA6B;QAC/C,qBAAqB,CAA6B;QAClD,oBAAoB,CAA6B;QACjD,wBAAwB,CAA6B;QACrD,iBAAiB,CAA6B;QAC9C,iBAAiB,CAA6B;QAC9C,2BAA2B,CAA6B;QACxD,gBAAgB,CAA6B;QAC7C,qBAAqB,CAA6B;QAClD,oBAAoB,CAA6B;QACjD,oBAAoB,CAA6B;QACjD,mBAAmB,CAA6B;QAChD,uBAAuB,CAA6B;QACpD,wBAAwB,CAA6B;QAErD,IAAI,OAAO,KAAyC,OAAO,cAAc,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAA,CAAQ,CAAC;QAC7G,IAAI,WAAW,KAAqC,OAAO,cAAc,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAA,CAAI,CAAC;QAC7G,IAAI,KAAK,KAA2C,OAAO,cAAc,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA,CAAU,CAAC;QAC7G,IAAI,UAAU,KAAsC,OAAO,c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IT_COMMIT_HASH = 'c382d2ef5ae8ffc20be4254bdfd2914e2696773a';
2
2
  export const packageJson = {
3
3
  "name": "@juzi/wechaty",
4
- "version": "1.0.71",
4
+ "version": "1.0.72",
5
5
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
6
6
  "type": "module",
7
7
  "exports": {
@@ -110,7 +110,7 @@ export const packageJson = {
110
110
  },
111
111
  "homepage": "https://github.com/wechaty/",
112
112
  "dependencies": {
113
- "@juzi/wechaty-puppet-service": "^1.0.73",
113
+ "@juzi/wechaty-puppet-service": "^1.0.75",
114
114
  "clone-class": "^1.1.1",
115
115
  "cmd-ts": "^0.10.0",
116
116
  "cockatiel": "^2.0.2",
@@ -133,7 +133,7 @@ export const packageJson = {
133
133
  "@chatie/eslint-config": "^1.0.4",
134
134
  "@chatie/semver": "^0.4.7",
135
135
  "@chatie/tsconfig": "^4.6.3",
136
- "@juzi/wechaty-puppet": "^1.0.64",
136
+ "@juzi/wechaty-puppet": "^1.0.66",
137
137
  "@juzi/wechaty-puppet-mock": "^1.0.1",
138
138
  "@swc/core": "1.3.44",
139
139
  "@swc/helpers": "^0.3.6",
@@ -0,0 +1,39 @@
1
+ import * as PUPPET from '@juzi/wechaty-puppet';
2
+ import type { Constructor } from 'clone-class';
3
+ import type { FileBoxInterface } from 'file-box';
4
+ import type { ChannelInterface } from './channel.js';
5
+ import type { ContactInterface } from './contact.js';
6
+ import type { LocationInterface } from './location.js';
7
+ import type { MiniProgramInterface } from './mini-program.js';
8
+ import type { UrlLinkInterface } from './url-link.js';
9
+ declare type ChatHistoryMessageType = string | ContactInterface | LocationInterface | MiniProgramInterface | UrlLinkInterface | ChannelInterface | ChatHistoryInterface | FileBoxInterface;
10
+ declare const ChatHistoryMixin_base: ((abstract new (...args: any[]) => {
11
+ readonly wechaty: import("../wechaty/wechaty-impl.js").WechatyInterface;
12
+ }) & {
13
+ readonly wechaty: import("../wechaty/wechaty-impl.js").WechatyInterface;
14
+ }) & {
15
+ new (): {};
16
+ };
17
+ declare class ChatHistoryMixin extends ChatHistoryMixin_base {
18
+ readonly payload: PUPPET.payloads.ChatHistory;
19
+ constructor(payload: PUPPET.payloads.ChatHistory);
20
+ avatar(): FileBoxInterface;
21
+ name(): undefined | string;
22
+ date(): Date;
23
+ message(): Promise<ChatHistoryMessageType>;
24
+ type(): PUPPET.types.Message;
25
+ }
26
+ declare const ChatHistoryImpl_base: {
27
+ new (...args: any[]): {};
28
+ valid: (o: any) => o is ChatHistoryInterface;
29
+ validInstance: (target: any) => target is ChatHistoryMixin;
30
+ validInterface: (target: any) => target is ChatHistoryInterface;
31
+ } & typeof ChatHistoryMixin;
32
+ declare class ChatHistoryImpl extends ChatHistoryImpl_base {
33
+ }
34
+ interface ChatHistoryInterface extends ChatHistoryImpl {
35
+ }
36
+ declare type ChatHistoryConstructor = Constructor<ChatHistoryInterface, typeof ChatHistoryImpl>;
37
+ export type { ChatHistoryConstructor, ChatHistoryInterface, };
38
+ export { ChatHistoryImpl, };
39
+ //# sourceMappingURL=chat-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-history.d.ts","sourceRoot":"","sources":["../../../../src/user-modules/chat-history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAQ9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAGrD,aAAK,sBAAsB,GAAG,MAAM,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,gBAAgB,CAAA;;;;;;;;AAElL,cAAM,gBAAiB,SAAQ,qBAAoB;aAM7B,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,WAAW;gBAApC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,WAAW;IAMxD,MAAM,IAAK,gBAAgB;IAI3B,IAAI,IAAK,SAAS,GAAG,MAAM;IAS3B,IAAI,IAAK,IAAI;IAKP,OAAO,IAAK,OAAO,CAAC,sBAAsB,CAAC;IA4BjD,IAAI,IAAK,MAAM,CAAC,KAAK,CAAC,OAAO;CAI9B;;;;;;;AAED,cAAM,eAAgB,SAAQ,oBAAyD;CAAI;AAC3F,UAAU,oBAAqB,SAAQ,eAAe;CAAI;AAE1D,aAAK,sBAAsB,GAAG,WAAW,CACvC,oBAAoB,EACpB,OAAO,eAAe,CACvB,CAAA;AAED,YAAY,EACV,sBAAsB,EACtB,oBAAoB,GACrB,CAAA;AACD,OAAO,EACL,eAAe,GAChB,CAAA"}
@@ -0,0 +1,65 @@
1
+ import * as PUPPET from '@juzi/wechaty-puppet';
2
+ import { log } from '../config.js';
3
+ import { validationMixin } from '../user-mixins/validation.js';
4
+ import { wechatifyMixinBase, } from '../user-mixins/wechatify.js';
5
+ import { timestampToDate } from '../pure-functions/timestamp-to-date.js';
6
+ class ChatHistoryMixin extends wechatifyMixinBase() {
7
+ payload;
8
+ /*
9
+ * @hideconstructor
10
+ */
11
+ constructor(payload) {
12
+ super();
13
+ this.payload = payload;
14
+ log.verbose('ChatHistory', 'constructor()');
15
+ }
16
+ avatar() {
17
+ return this.payload.avatar;
18
+ }
19
+ name() {
20
+ const senderName = this.payload.senderName;
21
+ const corpName = this.payload.corpName;
22
+ if (corpName) {
23
+ return `${senderName}@${corpName}`;
24
+ }
25
+ return senderName;
26
+ }
27
+ date() {
28
+ const time = this.payload.time;
29
+ return timestampToDate(Number(time)); // FIXME: change the type from string to number
30
+ }
31
+ async message() {
32
+ const type = this.type();
33
+ const message = this.payload.message;
34
+ switch (type) {
35
+ case PUPPET.types.Message.Text:
36
+ case PUPPET.types.Message.Contact:
37
+ return message;
38
+ case PUPPET.types.Message.Attachment:
39
+ case PUPPET.types.Message.Audio:
40
+ case PUPPET.types.Message.Emoticon:
41
+ case PUPPET.types.Message.Image:
42
+ case PUPPET.types.Message.Video:
43
+ return message;
44
+ case PUPPET.types.Message.Url:
45
+ return new this.wechaty.UrlLink(message);
46
+ case PUPPET.types.Message.Location:
47
+ return new this.wechaty.Location(message);
48
+ case PUPPET.types.Message.MiniProgram:
49
+ return new this.wechaty.MiniProgram(message);
50
+ case PUPPET.types.Message.Channel:
51
+ return new this.wechaty.Channel(message);
52
+ case PUPPET.types.Message.ChatHistory:
53
+ return new this.wechaty.ChatHistory(message);
54
+ default:
55
+ throw new Error(`Unsupported message type of chat history: ${PUPPET.types.Message[type]}`);
56
+ }
57
+ }
58
+ type() {
59
+ return this.payload.type;
60
+ }
61
+ }
62
+ class ChatHistoryImpl extends validationMixin(ChatHistoryMixin)() {
63
+ }
64
+ export { ChatHistoryImpl, };
65
+ //# sourceMappingURL=chat-history.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-history.js","sourceRoot":"","sources":["../../../../src/user-modules/chat-history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAG9C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAE9D,OAAO,EACL,kBAAkB,GACnB,MAAM,6BAA6B,CAAA;AAOpC,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAIxE,MAAM,gBAAiB,SAAQ,kBAAkB,EAAE;IAM7B;IAJpB;;OAEG;IACH,YACoB,OAAoC;QAEtD,KAAK,EAAE,CAAA;QAFW,YAAO,GAAP,OA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AO,CAAC,GAAG;gBAC3B,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;YAC1C,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ;gBAChC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;YAC3C,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW;gBACnC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;YAC9C,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO;gBAC/B,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;YAC1C,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW;gBACnC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;YAC9C;gBACE,MAAM,IAAI,KAAK,CAAC,6CAA6C,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;SAC7F;IACH,CAAC;IAED,IAAI;QACF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAA;IAC1B,CAAC;CAEF;AAED,MAAM,eAAgB,SAAQ,eAAe,CAAC,gBAAgB,CAAC,EAAwB;CAAI;AAY3F,OAAO,EACL,eAAe,GAChB,CAAA"}
@@ -32,6 +32,7 @@ import { PostInterface } from './post.js';
32
32
  import type { LocationInterface } from './location.js';
33
33
  import type { ChannelInterface } from './channel.js';
34
34
  import type { CallRecordInterface } from './call.js';
35
+ import type { ChatHistoryInterface } from './chat-history.js';
35
36
  declare const MixinBase: ((abstract new (...args: any[]) => {
36
37
  readonly wechaty: import("../wechaty/wechaty-impl.js").WechatyInterface;
37
38
  }) & {
@@ -456,6 +457,7 @@ declare class MessageMixin extends MixinBase implements SayableSayer {
456
457
  toPost(): Promise<PostInterface>;
457
458
  toChannel(): Promise<ChannelInterface>;
458
459
  toCallRecord(): Promise<CallRecordInterface>;
460
+ toChatHistory(): Promise<ChatHistoryInterface>;
459
461
  toSayable(): Promise<undefined | Sayable>;
460
462
  getQuotedMessage(): Promise<undefined | MessageInterface>;
461
463
  additionalInfo(): undefined | any;
@@ -1 +1 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../src/user-modules/message.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAQ,QAAQ,CAAA;AACvC,OAAO,KAAK,MAAM,MAAa,sBAAsB,CAAA;AACrD,OAAO,KAAK,EACV,gBAAgB,EACjB,MAA8B,UAAU,CAAA;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAS9C,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACR,MAAkC,mBAAmB,CAAA;AAStD,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAA4B,cAAc,CAAA;AAC3C,OAAO,KAAK,EACV,aAAa,EAEd,MAA4B,WAAW,CAAA;AACxC,OAAO,KAAK,EACV,gBAAgB,EACjB,MAA4B,eAAe,CAAA;AAC5C,OAAO,KAAK,EACV,oBAAoB,EACrB,MAA4B,mBAAmB,CAAA;AAChD,OAAO,KAAK,EACV,cAAc,EACf,MAA4B,YAAY,CAAA;AACzC,OAAO,EACL,aAAa,EAEd,MAA4B,WAAW,CAAA;AACxC,OAAO,KAAK,EACV,iBAAiB,EAClB,MAA4B,eAAe,CAAA;AAC5C,OAAO,KAAK,EACV,gBAAgB,EACjB,MAA4B,cAAc,CAAA;AAK3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAEpD,QAAA,MAAM,SAAS;;;;wBAEd,CAAA;AAWD;;;;GAIG;AACH,cAAM,YAAa,SAAQ,SAAU,YAAW,YAAY;aAkRxC,EAAE,EAAE,MAA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AAE,MAAM,CAAC,CACjC,CAAA;AAED,YAAY,EACV,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,GACnB,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../../src/user-modules/message.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAQ,QAAQ,CAAA;AACvC,OAAO,KAAK,MAAM,MAAa,sBAAsB,CAAA;AACrD,OAAO,KAAK,EACV,gBAAgB,EACjB,MAA8B,UAAU,CAAA;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAS9C,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACR,MAAkC,mBAAmB,CAAA;AAStD,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAA4B,cAAc,CAAA;AAC3C,OAAO,KAAK,EACV,aAAa,EAEd,MAA4B,WAAW,CAAA;AACxC,OAAO,KAAK,EACV,gBAAgB,EACjB,MAA4B,eAAe,CAAA;AAC5C,OAAO,KAAK,EACV,oBAAoB,EACrB,MAA4B,mBAAmB,CAAA;AAChD,OAAO,KAAK,EACV,cAAc,EACf,MAA4B,YAAY,CAAA;AACzC,OAAO,EACL,aAAa,EAEd,MAA4B,WAAW,CAAA;AACxC,OAAO,KAAK,EACV,iBAAiB,EAClB,MAA4B,eAAe,CAAA;AAC5C,OAAO,KAAK,EACV,gBAAgB,EACjB,MAA4B,cAAc,CAAA;AAK3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,QAAA,MAAM,SAAS;;;;wBAEd,CAAA;AAWD;;;;GAIG;AACH,cAAM,YAAa,SAAQ,SAAU,YAAW,YAAY;aAkRxC,EAAE,EAAE,MAAM;IAhR5B;;;;OAIG;IAEH;;OAEG;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AAO,WAAW,EAAE,MAAM,CAAC,CACjC,CAAA;AAED,YAAY,EACV,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,GACnB,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
@@ -1094,6 +1094,17 @@ class MessageMixin extends MixinBase {
1094
1094
  const callRecordPayload = await this.wechaty.puppet.messageCallRecord(this.id);
1095
1095
  return new this.wechaty.CallRecord(callRecordPayload);
1096
1096
  }
1097
+ async toChatHistory() {
1098
+ log.verbose('Message', 'toChatHistory()');
1099
+ if (!this.payload) {
1100
+ throw new Error('no payload');
1101
+ }
1102
+ if (this.type() !== PUPPET.types.Message.ChatHistory) {
1103
+ throw new Error('message not a ChatHistory');
1104
+ }
1105
+ const chatHistoryPayload = await this.wechaty.puppet.messageChatHistory(this.id);
1106
+ return new this.wechaty.ChatHistory(chatHistoryPayload);
1107
+ }
1097
1108
  async toSayable() {
1098
1109
  log.verbose('Message', 'toSayable()');
1099
1110
  return messageToSayable(this);