@juzi/wechaty 1.0.114 → 1.0.115
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/dist/cjs/src/mods/impls.d.ts +3 -3
- package/dist/cjs/src/mods/impls.d.ts.map +1 -1
- package/dist/cjs/src/mods/impls.js +2 -1
- package/dist/cjs/src/mods/impls.js.map +1 -1
- package/dist/cjs/src/mods/users.d.ts +1 -1
- package/dist/cjs/src/mods/users.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +4 -4
- package/dist/cjs/src/sayable/deliver-sayable.d.ts.map +1 -1
- package/dist/cjs/src/sayable/deliver-sayable.js +3 -0
- package/dist/cjs/src/sayable/deliver-sayable.js.map +1 -1
- package/dist/cjs/src/sayable/message-to-sayable.d.ts.map +1 -1
- package/dist/cjs/src/sayable/message-to-sayable.js +2 -0
- package/dist/cjs/src/sayable/message-to-sayable.js.map +1 -1
- package/dist/cjs/src/sayable/payload-to-sayable.d.ts.map +1 -1
- package/dist/cjs/src/sayable/payload-to-sayable.js +2 -0
- package/dist/cjs/src/sayable/payload-to-sayable.js.map +1 -1
- package/dist/cjs/src/sayable/sayable-to-payload.d.ts.map +1 -1
- package/dist/cjs/src/sayable/sayable-to-payload.js +3 -0
- package/dist/cjs/src/sayable/sayable-to-payload.js.map +1 -1
- package/dist/cjs/src/sayable/types.d.ts +2 -2
- package/dist/cjs/src/sayable/types.d.ts.map +1 -1
- package/dist/cjs/src/sayable/types.js.map +1 -1
- package/dist/cjs/src/user-modules/channel-card.d.ts +39 -0
- package/dist/cjs/src/user-modules/channel-card.d.ts.map +1 -0
- package/dist/cjs/src/user-modules/channel-card.js +57 -0
- package/dist/cjs/src/user-modules/channel-card.js.map +1 -0
- package/dist/cjs/src/user-modules/channel.d.ts +0 -2
- package/dist/cjs/src/user-modules/channel.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/channel.js +0 -6
- package/dist/cjs/src/user-modules/channel.js.map +1 -1
- package/dist/cjs/src/user-modules/message.d.ts +2 -0
- package/dist/cjs/src/user-modules/message.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/message.js +12 -0
- package/dist/cjs/src/user-modules/message.js.map +1 -1
- package/dist/cjs/src/user-modules/mod.d.ts +4 -3
- package/dist/cjs/src/user-modules/mod.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/mod.js +3 -1
- package/dist/cjs/src/user-modules/mod.js.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-base.d.ts +276 -36
- package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-base.js +1 -1
- package/dist/cjs/src/wechaty/wechaty-impl.spec.js +7 -5
- package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +12 -30
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +6 -0
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +8 -12
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +4 -0
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -2
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +3 -0
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/dist/esm/src/mods/impls.d.ts +3 -3
- package/dist/esm/src/mods/impls.d.ts.map +1 -1
- package/dist/esm/src/mods/impls.js +1 -1
- package/dist/esm/src/mods/impls.js.map +1 -1
- package/dist/esm/src/mods/users.d.ts +1 -1
- package/dist/esm/src/mods/users.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +4 -4
- package/dist/esm/src/sayable/deliver-sayable.d.ts.map +1 -1
- package/dist/esm/src/sayable/deliver-sayable.js +4 -1
- package/dist/esm/src/sayable/deliver-sayable.js.map +1 -1
- package/dist/esm/src/sayable/message-to-sayable.d.ts.map +1 -1
- package/dist/esm/src/sayable/message-to-sayable.js +2 -0
- package/dist/esm/src/sayable/message-to-sayable.js.map +1 -1
- package/dist/esm/src/sayable/payload-to-sayable.d.ts.map +1 -1
- package/dist/esm/src/sayable/payload-to-sayable.js +2 -0
- package/dist/esm/src/sayable/payload-to-sayable.js.map +1 -1
- package/dist/esm/src/sayable/sayable-to-payload.d.ts.map +1 -1
- package/dist/esm/src/sayable/sayable-to-payload.js +4 -1
- package/dist/esm/src/sayable/sayable-to-payload.js.map +1 -1
- package/dist/esm/src/sayable/types.d.ts +2 -2
- package/dist/esm/src/sayable/types.d.ts.map +1 -1
- package/dist/esm/src/sayable/types.js.map +1 -1
- package/dist/esm/src/user-modules/channel-card.d.ts +39 -0
- package/dist/esm/src/user-modules/channel-card.d.ts.map +1 -0
- package/dist/esm/src/user-modules/channel-card.js +54 -0
- package/dist/esm/src/user-modules/channel-card.js.map +1 -0
- package/dist/esm/src/user-modules/channel.d.ts +0 -2
- package/dist/esm/src/user-modules/channel.d.ts.map +1 -1
- package/dist/esm/src/user-modules/channel.js +0 -6
- package/dist/esm/src/user-modules/channel.js.map +1 -1
- package/dist/esm/src/user-modules/message.d.ts +2 -0
- package/dist/esm/src/user-modules/message.d.ts.map +1 -1
- package/dist/esm/src/user-modules/message.js +12 -0
- package/dist/esm/src/user-modules/message.js.map +1 -1
- package/dist/esm/src/user-modules/mod.d.ts +4 -3
- package/dist/esm/src/user-modules/mod.d.ts.map +1 -1
- package/dist/esm/src/user-modules/mod.js +2 -1
- package/dist/esm/src/user-modules/mod.js.map +1 -1
- package/dist/esm/src/wechaty/wechaty-base.d.ts +276 -36
- package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/esm/src/wechaty/wechaty-base.js +1 -1
- package/dist/esm/src/wechaty/wechaty-impl.spec.js +7 -5
- package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +12 -30
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +6 -0
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +8 -12
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +4 -0
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -2
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +4 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/package.json +3 -3
- package/src/mods/impls.ts +3 -0
- package/src/mods/users.ts +1 -0
- package/src/package-json.ts +4 -4
- package/src/sayable/deliver-sayable.ts +6 -0
- package/src/sayable/message-to-sayable.ts +3 -0
- package/src/sayable/payload-to-sayable.ts +3 -0
- package/src/sayable/sayable-to-payload.ts +3 -0
- package/src/sayable/types.ts +2 -0
- package/src/user-modules/channel-card.ts +85 -0
- package/src/user-modules/channel.ts +0 -8
- package/src/user-modules/message.ts +19 -0
- package/src/user-modules/mod.ts +8 -0
- package/src/wechaty/wechaty-base.ts +1 -1
- package/src/wechaty/wechaty-impl.spec.ts +3 -0
- package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
|
@@ -35,11 +35,12 @@ import { TagGroupImpl, TagGroupInterface, TagGroupConstructor } from './tag-grou
|
|
|
35
35
|
import { UrlLinkImpl, UrlLinkInterface, UrlLinkConstructor } from './url-link.js';
|
|
36
36
|
import { DelayImpl, DelayInterface, DelayConstructor } from './delay.js';
|
|
37
37
|
import { ChannelImpl, ChannelInterface, ChannelConstructor } from './channel.js';
|
|
38
|
+
import { ChannelCardImpl, ChannelCardInterface, ChannelCardConstructor } from './channel-card.js';
|
|
38
39
|
import { CallRecordImpl, CallRecordInterface, CallRecordConstructor } from './call.js';
|
|
39
40
|
import { ChatHistoryImpl, ChatHistoryInterface, ChatHistoryConstructor } from './chat-history.js';
|
|
40
41
|
import { WecomImpl, WecomInterface, WecomConstructor } from './wecom.js';
|
|
41
42
|
import { wechatifyUserModule } from '../user-mixins/wechatify.js';
|
|
42
|
-
export type { ContactInterface, ContactSelfInterface, FavoriteInterface, FriendshipInterface, ImageInterface, LocationInterface, MessageInterface, MiniProgramInterface, MomentInterface, MoneyInterface, PostInterface, RoomInterface, RoomInvitationInterface, TagInterface, TagGroupInterface, DelayInterface, UrlLinkInterface, ChannelInterface, CallRecordInterface, ChatHistoryInterface, WecomInterface, };
|
|
43
|
-
export type { ContactConstructor, ContactSelfConstructor, FavoriteConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, MomentConstructor, MoneyConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, DelayConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, CallRecordConstructor, ChatHistoryConstructor, WecomConstructor, };
|
|
44
|
-
export { wechatifyUserModule, ContactImpl, ContactSelfImpl, FavoriteImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, MomentImpl, MoneyImpl, PostImpl, RoomImpl, RoomInvitationImpl, DelayImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, CallRecordImpl, ChatHistoryImpl, WecomImpl, };
|
|
43
|
+
export type { ContactInterface, ContactSelfInterface, FavoriteInterface, FriendshipInterface, ImageInterface, LocationInterface, MessageInterface, MiniProgramInterface, MomentInterface, MoneyInterface, PostInterface, RoomInterface, RoomInvitationInterface, TagInterface, TagGroupInterface, DelayInterface, UrlLinkInterface, ChannelInterface, ChannelCardInterface, CallRecordInterface, ChatHistoryInterface, WecomInterface, };
|
|
44
|
+
export type { ContactConstructor, ContactSelfConstructor, FavoriteConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, MomentConstructor, MoneyConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, DelayConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, ChannelCardConstructor, CallRecordConstructor, ChatHistoryConstructor, WecomConstructor, };
|
|
45
|
+
export { wechatifyUserModule, ContactImpl, ContactSelfImpl, FavoriteImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, MomentImpl, MoneyImpl, PostImpl, RoomImpl, RoomInvitationImpl, DelayImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, ChannelCardImpl, CallRecordImpl, ChatHistoryImpl, WecomImpl, };
|
|
45
46
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/user-modules/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAgC,cAAc,CAAA;AAC/C,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACvB,MAAgC,mBAAmB,CAAA;AACpD,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACpB,MAAgC,eAAe,CAAA;AAChD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACtB,MAAgC,iBAAiB,CAAA;AAClD,OAAO,EACL,SAAS,EACT,cAAc,EACd,gBAAgB,EACjB,MAAgC,YAAY,CAAA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mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,GACf,CAAA;AAED,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,GACjB,CAAA;AAED,OAAO,EACL,mBAAmB,EAEnB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,SAAS,EACT,OAAO,EACP,YAAY,EACZ,WAAW,EACX,WAAW,EACX,cAAc,EACd,eAAe,EACf,SAAS,GACV,CAAA"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/user-modules/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EACnB,MAAgC,cAAc,CAAA;AAC/C,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACvB,MAAgC,mBAAmB,CAAA;AACpD,OAAO,EACL,YAAY,EACZ,iBAAi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}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WecomImpl = exports.ChatHistoryImpl = exports.CallRecordImpl = exports.ChannelImpl = exports.UrlLinkImpl = exports.TagGroupImpl = exports.TagImpl = exports.DelayImpl = exports.RoomInvitationImpl = exports.RoomImpl = exports.PostImpl = exports.MoneyImpl = exports.MomentImpl = exports.MiniProgramImpl = exports.MessageImpl = exports.LocationImpl = exports.ImageImpl = exports.FriendshipImpl = exports.FavoriteImpl = exports.ContactSelfImpl = exports.ContactImpl = exports.wechatifyUserModule = void 0;
|
|
3
|
+
exports.WecomImpl = exports.ChatHistoryImpl = exports.CallRecordImpl = exports.ChannelCardImpl = exports.ChannelImpl = exports.UrlLinkImpl = exports.TagGroupImpl = exports.TagImpl = exports.DelayImpl = exports.RoomInvitationImpl = exports.RoomImpl = exports.PostImpl = exports.MoneyImpl = exports.MomentImpl = exports.MiniProgramImpl = exports.MessageImpl = exports.LocationImpl = exports.ImageImpl = exports.FriendshipImpl = exports.FavoriteImpl = exports.ContactSelfImpl = exports.ContactImpl = exports.wechatifyUserModule = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Wechaty Chatbot SDK - https://github.com/wechaty/wechaty
|
|
6
6
|
*
|
|
@@ -56,6 +56,8 @@ const delay_js_1 = require("./delay.js");
|
|
|
56
56
|
Object.defineProperty(exports, "DelayImpl", { enumerable: true, get: function () { return delay_js_1.DelayImpl; } });
|
|
57
57
|
const channel_js_1 = require("./channel.js");
|
|
58
58
|
Object.defineProperty(exports, "ChannelImpl", { enumerable: true, get: function () { return channel_js_1.ChannelImpl; } });
|
|
59
|
+
const channel_card_js_1 = require("./channel-card.js");
|
|
60
|
+
Object.defineProperty(exports, "ChannelCardImpl", { enumerable: true, get: function () { return channel_card_js_1.ChannelCardImpl; } });
|
|
59
61
|
const call_js_1 = require("./call.js");
|
|
60
62
|
Object.defineProperty(exports, "CallRecordImpl", { enumerable: true, get: function () { return call_js_1.CallRecordImpl; } });
|
|
61
63
|
const chat_history_js_1 = require("./chat-history.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../../src/user-modules/mod.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,6CAI+C;
|
|
1
|
+
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../../src/user-modules/mod.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,6CAI+C;AAkK7C,4FArKA,wBAAW,OAqKA;AAjKb,uDAIoD;AA8JlD,gGAjKA,iCAAe,OAiKA;AA7JjB,+CAIgD;AA0J9C,6FA7JA,0BAAY,OA6JA;AAzJd,mDAIkD;AAsJhD,+FAzJA,8BAAc,OAyJA;AArJhB,yCAI6C;AAkJ3C,0FArJA,oBAAS,OAqJA;AAjJX,+CAIgD;AA8I9C,6FAjJA,0BAAY,OAiJA;AA7Id,6CAI+C;AA0I7C,4FA7IA,wBAAW,OA6IA;AAzIb,uDAIoD;AAsIlD,gGAzIA,iCAAe,OAyIA;AArIjB,2CAI8C;AAkI5C,2FArIA,sBAAU,OAqIA;AAjIZ,yCAI6C;AA8H3C,0FAjIA,oBAAS,OAiIA;AA7HX,uCAI4C;AA0H1C,yFA7HA,kBAAQ,OA6HA;AAzHV,uCAI4C;AAsH1C,yFAzHA,kBAAQ,OAyHA;AArHV,6DAIuD;AAkHrD,mGArHA,uCAAkB,OAqHA;AAjHpB,qCAI2C;AA+GzC,wFAlHA,gBAAO,OAkHA;AA9GT,iDAIiD;AA2G/C,6FA9GA,2BAAY,OA8GA;AA1Gd,+CAIgD;AAuG9C,4FA1GA,yBAAW,OA0GA;AAtGb,yCAI6C;AA+F3C,0FAlGA,oBAAS,OAkGA;AA9FX,6CAI+C;AA8F7C,4FAjGA,wBAAW,OAiGA;AA7Fb,uDAIoD;AA0FlD,gGA7FA,iCAAe,OA6FA;AAzFjB,uCAI4C;AAsF1C,+FAzFA,wBAAc,OAyFA;AArFhB,uDAIoD;AAkFlD,gGArFA,iCAAe,OAqFA;AAjFjB,yCAI6C;AA8E3C,0FAjFA,oBAAS,OAiFA;AA5EX,8DAAiE;AAqD/D,oGArDO,kCAAmB,OAqDP"}
|
|
@@ -69,13 +69,11 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
69
69
|
__wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
|
|
70
70
|
__wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
|
|
71
71
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
78
|
-
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
72
|
+
/**
|
|
73
|
+
* Huan(2021211): Keep the below call back hell
|
|
74
|
+
* because it's easy for testing
|
|
75
|
+
* especially when there's some typing mismatch and we need to figure it out.
|
|
76
|
+
*/
|
|
79
77
|
/**
|
|
80
78
|
* Main bot class.
|
|
81
79
|
*
|
|
@@ -99,6 +97,14 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
99
97
|
* bot.on('message', message => console.log(`Message: ${message}`))
|
|
100
98
|
* bot.start()
|
|
101
99
|
*/
|
|
100
|
+
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
101
|
+
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
102
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
103
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
104
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
105
|
+
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
106
|
+
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
107
|
+
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
102
108
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
103
109
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
104
110
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
@@ -110,9 +116,51 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
110
116
|
readonly Room: import("../user-modules/room.js").RoomConstructor;
|
|
111
117
|
readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
|
|
112
118
|
readonly Tag: import("../user-modules/tag.js").TagConstructor;
|
|
119
|
+
/**
|
|
120
|
+
* The term [Puppet](https://wechaty.js.org/docs/specs/puppet) in Wechaty is an Abstract Class for implementing protocol plugins.
|
|
121
|
+
* The plugins are the component that helps Wechaty to control the WeChat(that's the reason we call it puppet).
|
|
122
|
+
* The plugins are named XXXPuppet, for example:
|
|
123
|
+
* - [PuppetWeChat](https://github.com/wechaty/puppet-wechat):
|
|
124
|
+
* - [PuppetWeChat](https://github.com/wechaty/puppet-service):
|
|
125
|
+
* - [PuppetXP](https://github.com/wechaty/puppet-xp)
|
|
126
|
+
*
|
|
127
|
+
* @typedef PuppetModuleName
|
|
128
|
+
* @property {string} PUPPET_DEFAULT
|
|
129
|
+
* The default puppet.
|
|
130
|
+
* @property {string} wechaty-puppet-wechat4u
|
|
131
|
+
* The default puppet, using the [wechat4u](https://github.com/nodeWechat/wechat4u) to control the [WeChat Web API](https://wx.qq.com/) via a chrome browser.
|
|
132
|
+
* @property {string} wechaty-puppet-service
|
|
133
|
+
* - Using the gRPC protocol to connect with a Protocol Server for controlling the any protocol of any IM program.
|
|
134
|
+
* @property {string} wechaty-puppet-wechat
|
|
135
|
+
* - Using the [google puppeteer](https://github.com/GoogleChrome/puppeteer) to control the [WeChat Web API](https://wx.qq.com/) via a chrome browser.
|
|
136
|
+
* @property {string} wechaty-puppet-mock
|
|
137
|
+
* - Using the mock data to mock wechat operation, just for test.
|
|
138
|
+
*/
|
|
139
|
+
/**
|
|
140
|
+
* The option parameter to create a wechaty instance
|
|
141
|
+
*
|
|
142
|
+
* @typedef WechatyOptions
|
|
143
|
+
* @property {string} name -Wechaty Name. </br>
|
|
144
|
+
* When you set this: </br>
|
|
145
|
+
* `new Wechaty({name: 'wechaty-name'}) ` </br>
|
|
146
|
+
* it will generate a file called `wechaty-name.memory-card.json`. </br>
|
|
147
|
+
* This file stores the login information for bot. </br>
|
|
148
|
+
* If the file is valid, the bot can auto login so you don't need to scan the qrCode to login again. </br>
|
|
149
|
+
* Also, you can set the environment variable for `WECHATY_NAME` to set this value when you start. </br>
|
|
150
|
+
* eg: `WECHATY_NAME="your-cute-bot-name" node bot.js`
|
|
151
|
+
* @property {PuppetModuleName | Puppet} puppet -Puppet name or instance
|
|
152
|
+
* @property {Partial<PuppetOptions>} puppetOptions -Puppet TOKEN
|
|
153
|
+
* @property {string} ioToken -Io TOKEN
|
|
154
|
+
*/
|
|
155
|
+
/**
|
|
156
|
+
* Creates an instance of Wechaty.
|
|
157
|
+
* @param {WechatyOptions} [options={}]
|
|
158
|
+
*
|
|
159
|
+
*/
|
|
113
160
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
114
161
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
115
162
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
163
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
116
164
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
117
165
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
118
166
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -172,13 +220,11 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
172
220
|
__wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
|
|
173
221
|
__wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
|
|
174
222
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
181
|
-
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
223
|
+
/**
|
|
224
|
+
* Huan(2021211): Keep the below call back hell
|
|
225
|
+
* because it's easy for testing
|
|
226
|
+
* especially when there's some typing mismatch and we need to figure it out.
|
|
227
|
+
*/
|
|
182
228
|
/**
|
|
183
229
|
* Main bot class.
|
|
184
230
|
*
|
|
@@ -202,6 +248,14 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
202
248
|
* bot.on('message', message => console.log(`Message: ${message}`))
|
|
203
249
|
* bot.start()
|
|
204
250
|
*/
|
|
251
|
+
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
252
|
+
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
253
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
254
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
255
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
256
|
+
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
257
|
+
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
258
|
+
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
205
259
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
206
260
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
207
261
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
@@ -213,9 +267,51 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
213
267
|
readonly Room: import("../user-modules/room.js").RoomConstructor;
|
|
214
268
|
readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
|
|
215
269
|
readonly Tag: import("../user-modules/tag.js").TagConstructor;
|
|
270
|
+
/**
|
|
271
|
+
* The term [Puppet](https://wechaty.js.org/docs/specs/puppet) in Wechaty is an Abstract Class for implementing protocol plugins.
|
|
272
|
+
* The plugins are the component that helps Wechaty to control the WeChat(that's the reason we call it puppet).
|
|
273
|
+
* The plugins are named XXXPuppet, for example:
|
|
274
|
+
* - [PuppetWeChat](https://github.com/wechaty/puppet-wechat):
|
|
275
|
+
* - [PuppetWeChat](https://github.com/wechaty/puppet-service):
|
|
276
|
+
* - [PuppetXP](https://github.com/wechaty/puppet-xp)
|
|
277
|
+
*
|
|
278
|
+
* @typedef PuppetModuleName
|
|
279
|
+
* @property {string} PUPPET_DEFAULT
|
|
280
|
+
* The default puppet.
|
|
281
|
+
* @property {string} wechaty-puppet-wechat4u
|
|
282
|
+
* The default puppet, using the [wechat4u](https://github.com/nodeWechat/wechat4u) to control the [WeChat Web API](https://wx.qq.com/) via a chrome browser.
|
|
283
|
+
* @property {string} wechaty-puppet-service
|
|
284
|
+
* - Using the gRPC protocol to connect with a Protocol Server for controlling the any protocol of any IM program.
|
|
285
|
+
* @property {string} wechaty-puppet-wechat
|
|
286
|
+
* - Using the [google puppeteer](https://github.com/GoogleChrome/puppeteer) to control the [WeChat Web API](https://wx.qq.com/) via a chrome browser.
|
|
287
|
+
* @property {string} wechaty-puppet-mock
|
|
288
|
+
* - Using the mock data to mock wechat operation, just for test.
|
|
289
|
+
*/
|
|
290
|
+
/**
|
|
291
|
+
* The option parameter to create a wechaty instance
|
|
292
|
+
*
|
|
293
|
+
* @typedef WechatyOptions
|
|
294
|
+
* @property {string} name -Wechaty Name. </br>
|
|
295
|
+
* When you set this: </br>
|
|
296
|
+
* `new Wechaty({name: 'wechaty-name'}) ` </br>
|
|
297
|
+
* it will generate a file called `wechaty-name.memory-card.json`. </br>
|
|
298
|
+
* This file stores the login information for bot. </br>
|
|
299
|
+
* If the file is valid, the bot can auto login so you don't need to scan the qrCode to login again. </br>
|
|
300
|
+
* Also, you can set the environment variable for `WECHATY_NAME` to set this value when you start. </br>
|
|
301
|
+
* eg: `WECHATY_NAME="your-cute-bot-name" node bot.js`
|
|
302
|
+
* @property {PuppetModuleName | Puppet} puppet -Puppet name or instance
|
|
303
|
+
* @property {Partial<PuppetOptions>} puppetOptions -Puppet TOKEN
|
|
304
|
+
* @property {string} ioToken -Io TOKEN
|
|
305
|
+
*/
|
|
306
|
+
/**
|
|
307
|
+
* Creates an instance of Wechaty.
|
|
308
|
+
* @param {WechatyOptions} [options={}]
|
|
309
|
+
*
|
|
310
|
+
*/
|
|
216
311
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
217
312
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
218
313
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
314
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
219
315
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
220
316
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
221
317
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -279,13 +375,11 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
279
375
|
__wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
|
|
280
376
|
__wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
|
|
281
377
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
288
|
-
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
378
|
+
/**
|
|
379
|
+
* Huan(2021211): Keep the below call back hell
|
|
380
|
+
* because it's easy for testing
|
|
381
|
+
* especially when there's some typing mismatch and we need to figure it out.
|
|
382
|
+
*/
|
|
289
383
|
/**
|
|
290
384
|
* Main bot class.
|
|
291
385
|
*
|
|
@@ -309,6 +403,14 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
309
403
|
* bot.on('message', message => console.log(`Message: ${message}`))
|
|
310
404
|
* bot.start()
|
|
311
405
|
*/
|
|
406
|
+
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
407
|
+
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
408
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
409
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
410
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
411
|
+
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
412
|
+
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
413
|
+
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
312
414
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
313
415
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
314
416
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
@@ -320,9 +422,51 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
320
422
|
readonly Room: import("../user-modules/room.js").RoomConstructor;
|
|
321
423
|
readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
|
|
322
424
|
readonly Tag: import("../user-modules/tag.js").TagConstructor;
|
|
425
|
+
/**
|
|
426
|
+
* The term [Puppet](https://wechaty.js.org/docs/specs/puppet) in Wechaty is an Abstract Class for implementing protocol plugins.
|
|
427
|
+
* The plugins are the component that helps Wechaty to control the WeChat(that's the reason we call it puppet).
|
|
428
|
+
* The plugins are named XXXPuppet, for example:
|
|
429
|
+
* - [PuppetWeChat](https://github.com/wechaty/puppet-wechat):
|
|
430
|
+
* - [PuppetWeChat](https://github.com/wechaty/puppet-service):
|
|
431
|
+
* - [PuppetXP](https://github.com/wechaty/puppet-xp)
|
|
432
|
+
*
|
|
433
|
+
* @typedef PuppetModuleName
|
|
434
|
+
* @property {string} PUPPET_DEFAULT
|
|
435
|
+
* The default puppet.
|
|
436
|
+
* @property {string} wechaty-puppet-wechat4u
|
|
437
|
+
* The default puppet, using the [wechat4u](https://github.com/nodeWechat/wechat4u) to control the [WeChat Web API](https://wx.qq.com/) via a chrome browser.
|
|
438
|
+
* @property {string} wechaty-puppet-service
|
|
439
|
+
* - Using the gRPC protocol to connect with a Protocol Server for controlling the any protocol of any IM program.
|
|
440
|
+
* @property {string} wechaty-puppet-wechat
|
|
441
|
+
* - Using the [google puppeteer](https://github.com/GoogleChrome/puppeteer) to control the [WeChat Web API](https://wx.qq.com/) via a chrome browser.
|
|
442
|
+
* @property {string} wechaty-puppet-mock
|
|
443
|
+
* - Using the mock data to mock wechat operation, just for test.
|
|
444
|
+
*/
|
|
445
|
+
/**
|
|
446
|
+
* The option parameter to create a wechaty instance
|
|
447
|
+
*
|
|
448
|
+
* @typedef WechatyOptions
|
|
449
|
+
* @property {string} name -Wechaty Name. </br>
|
|
450
|
+
* When you set this: </br>
|
|
451
|
+
* `new Wechaty({name: 'wechaty-name'}) ` </br>
|
|
452
|
+
* it will generate a file called `wechaty-name.memory-card.json`. </br>
|
|
453
|
+
* This file stores the login information for bot. </br>
|
|
454
|
+
* If the file is valid, the bot can auto login so you don't need to scan the qrCode to login again. </br>
|
|
455
|
+
* Also, you can set the environment variable for `WECHATY_NAME` to set this value when you start. </br>
|
|
456
|
+
* eg: `WECHATY_NAME="your-cute-bot-name" node bot.js`
|
|
457
|
+
* @property {PuppetModuleName | Puppet} puppet -Puppet name or instance
|
|
458
|
+
* @property {Partial<PuppetOptions>} puppetOptions -Puppet TOKEN
|
|
459
|
+
* @property {string} ioToken -Io TOKEN
|
|
460
|
+
*/
|
|
461
|
+
/**
|
|
462
|
+
* Creates an instance of Wechaty.
|
|
463
|
+
* @param {WechatyOptions} [options={}]
|
|
464
|
+
*
|
|
465
|
+
*/
|
|
323
466
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
324
467
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
325
468
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
469
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
326
470
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
327
471
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
328
472
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -358,13 +502,11 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
358
502
|
__wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
|
|
359
503
|
__wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
|
|
360
504
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
367
|
-
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
505
|
+
/**
|
|
506
|
+
* Huan(2021211): Keep the below call back hell
|
|
507
|
+
* because it's easy for testing
|
|
508
|
+
* especially when there's some typing mismatch and we need to figure it out.
|
|
509
|
+
*/
|
|
368
510
|
/**
|
|
369
511
|
* Main bot class.
|
|
370
512
|
*
|
|
@@ -388,6 +530,14 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
388
530
|
* bot.on('message', message => console.log(`Message: ${message}`))
|
|
389
531
|
* bot.start()
|
|
390
532
|
*/
|
|
533
|
+
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
534
|
+
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
535
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
536
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
537
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
538
|
+
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
539
|
+
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
540
|
+
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
391
541
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
392
542
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
393
543
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
@@ -399,9 +549,51 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
399
549
|
readonly Room: import("../user-modules/room.js").RoomConstructor;
|
|
400
550
|
readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
|
|
401
551
|
readonly Tag: import("../user-modules/tag.js").TagConstructor;
|
|
552
|
+
/**
|
|
553
|
+
* The term [Puppet](https://wechaty.js.org/docs/specs/puppet) in Wechaty is an Abstract Class for implementing protocol plugins.
|
|
554
|
+
* The plugins are the component that helps Wechaty to control the WeChat(that's the reason we call it puppet).
|
|
555
|
+
* The plugins are named XXXPuppet, for example:
|
|
556
|
+
* - [PuppetWeChat](https://github.com/wechaty/puppet-wechat):
|
|
557
|
+
* - [PuppetWeChat](https://github.com/wechaty/puppet-service):
|
|
558
|
+
* - [PuppetXP](https://github.com/wechaty/puppet-xp)
|
|
559
|
+
*
|
|
560
|
+
* @typedef PuppetModuleName
|
|
561
|
+
* @property {string} PUPPET_DEFAULT
|
|
562
|
+
* The default puppet.
|
|
563
|
+
* @property {string} wechaty-puppet-wechat4u
|
|
564
|
+
* The default puppet, using the [wechat4u](https://github.com/nodeWechat/wechat4u) to control the [WeChat Web API](https://wx.qq.com/) via a chrome browser.
|
|
565
|
+
* @property {string} wechaty-puppet-service
|
|
566
|
+
* - Using the gRPC protocol to connect with a Protocol Server for controlling the any protocol of any IM program.
|
|
567
|
+
* @property {string} wechaty-puppet-wechat
|
|
568
|
+
* - Using the [google puppeteer](https://github.com/GoogleChrome/puppeteer) to control the [WeChat Web API](https://wx.qq.com/) via a chrome browser.
|
|
569
|
+
* @property {string} wechaty-puppet-mock
|
|
570
|
+
* - Using the mock data to mock wechat operation, just for test.
|
|
571
|
+
*/
|
|
572
|
+
/**
|
|
573
|
+
* The option parameter to create a wechaty instance
|
|
574
|
+
*
|
|
575
|
+
* @typedef WechatyOptions
|
|
576
|
+
* @property {string} name -Wechaty Name. </br>
|
|
577
|
+
* When you set this: </br>
|
|
578
|
+
* `new Wechaty({name: 'wechaty-name'}) ` </br>
|
|
579
|
+
* it will generate a file called `wechaty-name.memory-card.json`. </br>
|
|
580
|
+
* This file stores the login information for bot. </br>
|
|
581
|
+
* If the file is valid, the bot can auto login so you don't need to scan the qrCode to login again. </br>
|
|
582
|
+
* Also, you can set the environment variable for `WECHATY_NAME` to set this value when you start. </br>
|
|
583
|
+
* eg: `WECHATY_NAME="your-cute-bot-name" node bot.js`
|
|
584
|
+
* @property {PuppetModuleName | Puppet} puppet -Puppet name or instance
|
|
585
|
+
* @property {Partial<PuppetOptions>} puppetOptions -Puppet TOKEN
|
|
586
|
+
* @property {string} ioToken -Io TOKEN
|
|
587
|
+
*/
|
|
588
|
+
/**
|
|
589
|
+
* Creates an instance of Wechaty.
|
|
590
|
+
* @param {WechatyOptions} [options={}]
|
|
591
|
+
*
|
|
592
|
+
*/
|
|
402
593
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
403
594
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
404
595
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
596
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
405
597
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
406
598
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
407
599
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -480,13 +672,11 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
480
672
|
__wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
|
|
481
673
|
__wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
|
|
482
674
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
489
|
-
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
675
|
+
/**
|
|
676
|
+
* Huan(2021211): Keep the below call back hell
|
|
677
|
+
* because it's easy for testing
|
|
678
|
+
* especially when there's some typing mismatch and we need to figure it out.
|
|
679
|
+
*/
|
|
490
680
|
/**
|
|
491
681
|
* Main bot class.
|
|
492
682
|
*
|
|
@@ -510,6 +700,14 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
510
700
|
* bot.on('message', message => console.log(`Message: ${message}`))
|
|
511
701
|
* bot.start()
|
|
512
702
|
*/
|
|
703
|
+
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
704
|
+
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
705
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
706
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
707
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
708
|
+
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
709
|
+
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
710
|
+
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
513
711
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
514
712
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
515
713
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
@@ -521,9 +719,51 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
521
719
|
readonly Room: import("../user-modules/room.js").RoomConstructor;
|
|
522
720
|
readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
|
|
523
721
|
readonly Tag: import("../user-modules/tag.js").TagConstructor;
|
|
722
|
+
/**
|
|
723
|
+
* The term [Puppet](https://wechaty.js.org/docs/specs/puppet) in Wechaty is an Abstract Class for implementing protocol plugins.
|
|
724
|
+
* The plugins are the component that helps Wechaty to control the WeChat(that's the reason we call it puppet).
|
|
725
|
+
* The plugins are named XXXPuppet, for example:
|
|
726
|
+
* - [PuppetWeChat](https://github.com/wechaty/puppet-wechat):
|
|
727
|
+
* - [PuppetWeChat](https://github.com/wechaty/puppet-service):
|
|
728
|
+
* - [PuppetXP](https://github.com/wechaty/puppet-xp)
|
|
729
|
+
*
|
|
730
|
+
* @typedef PuppetModuleName
|
|
731
|
+
* @property {string} PUPPET_DEFAULT
|
|
732
|
+
* The default puppet.
|
|
733
|
+
* @property {string} wechaty-puppet-wechat4u
|
|
734
|
+
* The default puppet, using the [wechat4u](https://github.com/nodeWechat/wechat4u) to control the [WeChat Web API](https://wx.qq.com/) via a chrome browser.
|
|
735
|
+
* @property {string} wechaty-puppet-service
|
|
736
|
+
* - Using the gRPC protocol to connect with a Protocol Server for controlling the any protocol of any IM program.
|
|
737
|
+
* @property {string} wechaty-puppet-wechat
|
|
738
|
+
* - Using the [google puppeteer](https://github.com/GoogleChrome/puppeteer) to control the [WeChat Web API](https://wx.qq.com/) via a chrome browser.
|
|
739
|
+
* @property {string} wechaty-puppet-mock
|
|
740
|
+
* - Using the mock data to mock wechat operation, just for test.
|
|
741
|
+
*/
|
|
742
|
+
/**
|
|
743
|
+
* The option parameter to create a wechaty instance
|
|
744
|
+
*
|
|
745
|
+
* @typedef WechatyOptions
|
|
746
|
+
* @property {string} name -Wechaty Name. </br>
|
|
747
|
+
* When you set this: </br>
|
|
748
|
+
* `new Wechaty({name: 'wechaty-name'}) ` </br>
|
|
749
|
+
* it will generate a file called `wechaty-name.memory-card.json`. </br>
|
|
750
|
+
* This file stores the login information for bot. </br>
|
|
751
|
+
* If the file is valid, the bot can auto login so you don't need to scan the qrCode to login again. </br>
|
|
752
|
+
* Also, you can set the environment variable for `WECHATY_NAME` to set this value when you start. </br>
|
|
753
|
+
* eg: `WECHATY_NAME="your-cute-bot-name" node bot.js`
|
|
754
|
+
* @property {PuppetModuleName | Puppet} puppet -Puppet name or instance
|
|
755
|
+
* @property {Partial<PuppetOptions>} puppetOptions -Puppet TOKEN
|
|
756
|
+
* @property {string} ioToken -Io TOKEN
|
|
757
|
+
*/
|
|
758
|
+
/**
|
|
759
|
+
* Creates an instance of Wechaty.
|
|
760
|
+
* @param {WechatyOptions} [options={}]
|
|
761
|
+
*
|
|
762
|
+
*/
|
|
524
763
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
525
764
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
526
765
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
766
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
527
767
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
528
768
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
529
769
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -667,7 +907,7 @@ declare class WechatyBase extends mixinBase implements SayableSayer {
|
|
|
667
907
|
* > Tips:
|
|
668
908
|
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
|
|
669
909
|
*
|
|
670
|
-
* @param {(string | Contact | FileBox | UrlLink | MiniProgram | Location | Channel)} sayable
|
|
910
|
+
* @param {(string | Contact | FileBox | UrlLink | MiniProgram | Location | Channel | ChannelCard)} sayable
|
|
671
911
|
* send text, Contact, or file to bot. </br>
|
|
672
912
|
* You can use {@link https://www.npmjs.com/package/file-box|FileBox} to send file
|
|
673
913
|
*
|
|
@@ -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,mBAA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,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IAKV,OAAO,CACX,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,GAAG,aAAa,CAAC;IAY1B,SAAS,CACb,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,CAAC;IAYV,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IAMV,gBAAgB,CACpB,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,IAAI,CAAC;IAMV,aAAa,IAChB,OAAO,CAAC,IAAI,CAAC;CAUjB;AAED,aAAK,4BAA4B,GAE7B,oBAAoB,GACpB,gCAAgC,GAChC,SAAS,GACT,SAAS,GACT,QAAQ,CAAA;AAEZ,YAAY,EACV,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
|
|
@@ -180,7 +180,7 @@ class WechatyBase extends mixinBase {
|
|
|
180
180
|
* > Tips:
|
|
181
181
|
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
|
|
182
182
|
*
|
|
183
|
-
* @param {(string | Contact | FileBox | UrlLink | MiniProgram | Location | Channel)} sayable
|
|
183
|
+
* @param {(string | Contact | FileBox | UrlLink | MiniProgram | Location | Channel | ChannelCard)} sayable
|
|
184
184
|
* send text, Contact, or file to bot. </br>
|
|
185
185
|
* You can use {@link https://www.npmjs.com/package/file-box|FileBox} to send file
|
|
186
186
|
*
|
|
@@ -25,6 +25,7 @@ const wechaty_impl_js_1 = require("./wechaty-impl.js");
|
|
|
25
25
|
TagGroup;
|
|
26
26
|
UrlLink;
|
|
27
27
|
Channel;
|
|
28
|
+
ChannelCard;
|
|
28
29
|
Moment;
|
|
29
30
|
CallRecord;
|
|
30
31
|
ChatHistory;
|
|
@@ -47,11 +48,12 @@ const wechaty_impl_js_1 = require("./wechaty-impl.js");
|
|
|
47
48
|
= this.TagGroup
|
|
48
49
|
= this.UrlLink
|
|
49
50
|
= this.Channel
|
|
50
|
-
= this.
|
|
51
|
-
= this.
|
|
52
|
-
= this.
|
|
53
|
-
= this.
|
|
54
|
-
=
|
|
51
|
+
= this.ChannelCard
|
|
52
|
+
= this.Moment
|
|
53
|
+
= this.CallRecord
|
|
54
|
+
= this.ChatHistory
|
|
55
|
+
= this.Wecom
|
|
56
|
+
= {};
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
59
|
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;
|
|
1
|
+
{"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";;;;;;AACA,mCAA6B;AAC7B,oFAAkD;AAElD,oEAAkE;AA0BlE,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,WAAW,CAA4B;QACvC,MAAM,CAA4B;QAClC,UAAU,CAA4B;QACtC,WAAW,CAA4B;QACvC,KAAK,CAA4B;QAEjC;YACE,KAAK,EAAE,CAAA;YACP,cAAc;YACd,IAAI,CAAC,OAA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