@t2000/cli 0.18.6 → 0.18.9
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.
|
@@ -26881,7 +26881,9 @@ var Gateway = class _Gateway {
|
|
|
26881
26881
|
}
|
|
26882
26882
|
}
|
|
26883
26883
|
if (!this.options.noTelegram && this.config.channels.telegram?.enabled && this.config.channels.telegram.botToken) {
|
|
26884
|
-
|
|
26884
|
+
this.startTelegram(tools, toolDefs, results).catch((err) => {
|
|
26885
|
+
this.logger.error(`Telegram startup error: ${err instanceof Error ? err.message : String(err)}`);
|
|
26886
|
+
});
|
|
26885
26887
|
}
|
|
26886
26888
|
if (!this.options.noHeartbeat) {
|
|
26887
26889
|
const getUsage = () => {
|
|
@@ -26921,11 +26923,6 @@ var Gateway = class _Gateway {
|
|
|
26921
26923
|
};
|
|
26922
26924
|
process.on("SIGINT", shutdown);
|
|
26923
26925
|
process.on("SIGTERM", shutdown);
|
|
26924
|
-
this.logger.info("Gateway ready", {
|
|
26925
|
-
webchat: results.webchatUrl,
|
|
26926
|
-
telegram: results.telegramConnected,
|
|
26927
|
-
heartbeat: results.heartbeatTasks
|
|
26928
|
-
});
|
|
26929
26926
|
return results;
|
|
26930
26927
|
}
|
|
26931
26928
|
async startTelegram(tools, toolDefs, results) {
|
|
@@ -26972,6 +26969,7 @@ var Gateway = class _Gateway {
|
|
|
26972
26969
|
}
|
|
26973
26970
|
});
|
|
26974
26971
|
const attemptConnect = async () => {
|
|
26972
|
+
this.logger.info("Connecting to Telegram...");
|
|
26975
26973
|
try {
|
|
26976
26974
|
await telegram.start();
|
|
26977
26975
|
this.channels.push(telegram);
|
|
@@ -27112,4 +27110,4 @@ humanize-ms/index.js:
|
|
|
27112
27110
|
* MIT Licensed
|
|
27113
27111
|
*)
|
|
27114
27112
|
*/
|
|
27115
|
-
//# sourceMappingURL=dist-
|
|
27113
|
+
//# sourceMappingURL=dist-KALLDWPD.js.map
|