@kieksme/csp-plugin-telegram 0.12.0 → 0.13.0
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/browser.js
CHANGED
package/dist/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cspPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KEQQ5NCA.js";
|
|
4
4
|
|
|
5
5
|
// src/server.ts
|
|
6
6
|
import {
|
|
@@ -81,6 +81,7 @@ import { z as z2 } from "zod";
|
|
|
81
81
|
import {
|
|
82
82
|
action,
|
|
83
83
|
supportReply,
|
|
84
|
+
requestNotice,
|
|
84
85
|
ChatError
|
|
85
86
|
} from "@kieksme/csp-core/support";
|
|
86
87
|
|
|
@@ -486,6 +487,13 @@ async function createTelegramBridge(app, store, config, fetcher = fetch, onTake
|
|
|
486
487
|
current.thread.serviceUrl = String(result.message_id);
|
|
487
488
|
});
|
|
488
489
|
}
|
|
490
|
+
if (c.supportRequest?.messageId && c.status !== "waiting")
|
|
491
|
+
await api("editMessageText", {
|
|
492
|
+
chat_id: base.chat_id,
|
|
493
|
+
message_id: Number(c.supportRequest.messageId),
|
|
494
|
+
text: requestNotice(c),
|
|
495
|
+
reply_markup: { inline_keyboard: [] }
|
|
496
|
+
});
|
|
489
497
|
} else if (job.message) {
|
|
490
498
|
const m = job.message, text = `${m.kind === "user" ? c.owner.name : m.kind === "bot" ? "Digitaler Assistent" : m.name ?? "Support"}
|
|
491
499
|
${m.content}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kieksme/csp-plugin-telegram",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"registry": "https://registry.npmjs.org"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@kieksme/csp-sdk": "^0.
|
|
26
|
-
"@kieksme/csp-core": "^0.
|
|
25
|
+
"@kieksme/csp-sdk": "^0.13.0",
|
|
26
|
+
"@kieksme/csp-core": "^0.13.0",
|
|
27
27
|
"zod": "^3.25.76",
|
|
28
28
|
"fastify": "^5.6.1"
|
|
29
29
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"cspPlugin": {
|
|
34
34
|
"id": "telegram",
|
|
35
|
-
"sdkVersion": "^0.
|
|
35
|
+
"sdkVersion": "^0.13.0",
|
|
36
36
|
"browser": "./browser",
|
|
37
37
|
"server": "./server",
|
|
38
38
|
"requires": [
|