@nextclaw/channel-runtime 0.1.30 → 0.1.31
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/index.js +10 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4120,12 +4120,16 @@ var BUILTIN_CHANNEL_RUNTIMES = {
|
|
|
4120
4120
|
telegram: {
|
|
4121
4121
|
id: "telegram",
|
|
4122
4122
|
isEnabled: (config) => config.channels.telegram.enabled,
|
|
4123
|
-
createChannel: (context) =>
|
|
4124
|
-
context.config.
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4123
|
+
createChannel: (context) => {
|
|
4124
|
+
const providers = context.config.providers;
|
|
4125
|
+
const groqApiKey = providers.groq?.apiKey;
|
|
4126
|
+
return new TelegramChannel(
|
|
4127
|
+
context.config.channels.telegram,
|
|
4128
|
+
context.bus,
|
|
4129
|
+
groqApiKey,
|
|
4130
|
+
context.sessionManager
|
|
4131
|
+
);
|
|
4132
|
+
}
|
|
4129
4133
|
},
|
|
4130
4134
|
whatsapp: {
|
|
4131
4135
|
id: "whatsapp",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/channel-runtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Runtime implementations for NextClaw builtin channel plugins.",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@larksuiteoapi/node-sdk": "^1.58.0",
|
|
18
|
-
"@nextclaw/core": "^0.7.3",
|
|
19
18
|
"@slack/socket-mode": "^1.3.3",
|
|
20
19
|
"@slack/web-api": "^7.6.0",
|
|
21
20
|
"dingtalk-stream": "^2.1.4",
|
|
@@ -28,7 +27,8 @@
|
|
|
28
27
|
"socket.io-client": "^4.7.5",
|
|
29
28
|
"undici": "^6.21.0",
|
|
30
29
|
"ws": "^8.18.0",
|
|
31
|
-
"socket.io-msgpack-parser": "^3.0.2"
|
|
30
|
+
"socket.io-msgpack-parser": "^3.0.2",
|
|
31
|
+
"@nextclaw/core": "0.7.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/mailparser": "^3.4.6",
|