@t2000/cli 0.18.9 → 0.19.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.
@@ -25467,10 +25467,11 @@ var TelegramChannel = class {
25467
25467
  this.setupHandlers();
25468
25468
  }
25469
25469
  async start() {
25470
- await this.bot.start({
25471
- onStart: () => {
25472
- },
25473
- drop_pending_updates: true
25470
+ return new Promise((resolve2) => {
25471
+ this.bot.start({
25472
+ onStart: () => resolve2(),
25473
+ drop_pending_updates: true
25474
+ });
25474
25475
  });
25475
25476
  }
25476
25477
  async stop() {
@@ -26881,9 +26882,7 @@ var Gateway = class _Gateway {
26881
26882
  }
26882
26883
  }
26883
26884
  if (!this.options.noTelegram && this.config.channels.telegram?.enabled && this.config.channels.telegram.botToken) {
26884
- this.startTelegram(tools, toolDefs, results).catch((err) => {
26885
- this.logger.error(`Telegram startup error: ${err instanceof Error ? err.message : String(err)}`);
26886
- });
26885
+ await this.startTelegram(tools, toolDefs, results);
26887
26886
  }
26888
26887
  if (!this.options.noHeartbeat) {
26889
26888
  const getUsage = () => {
@@ -27110,4 +27109,4 @@ humanize-ms/index.js:
27110
27109
  * MIT Licensed
27111
27110
  *)
27112
27111
  */
27113
- //# sourceMappingURL=dist-KALLDWPD.js.map
27112
+ //# sourceMappingURL=dist-UYIQ42TA.js.map