@openacp/cli 2026.330.2 → 2026.330.3

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.
@@ -5291,6 +5291,7 @@ var TelegramAdapter = class extends MessagingAdapter {
5291
5291
  core;
5292
5292
  bot;
5293
5293
  telegramConfig;
5294
+ saveTopicIds;
5294
5295
  permissionHandler;
5295
5296
  assistantSession = null;
5296
5297
  assistantInitializing = false;
@@ -5339,7 +5340,7 @@ var TelegramAdapter = class extends MessagingAdapter {
5339
5340
  }
5340
5341
  return tracker;
5341
5342
  }
5342
- constructor(core, config) {
5343
+ constructor(core, config, saveTopicIds) {
5343
5344
  super({ configManager: core.configManager }, {
5344
5345
  ...config,
5345
5346
  maxMessageLength: 4096,
@@ -5347,6 +5348,7 @@ var TelegramAdapter = class extends MessagingAdapter {
5347
5348
  });
5348
5349
  this.core = core;
5349
5350
  this.telegramConfig = config;
5351
+ this.saveTopicIds = saveTopicIds;
5350
5352
  }
5351
5353
  async start() {
5352
5354
  this.bot = new Bot(this.telegramConfig.botToken, {
@@ -5418,9 +5420,13 @@ var TelegramAdapter = class extends MessagingAdapter {
5418
5420
  this.telegramConfig.chatId,
5419
5421
  this.telegramConfig,
5420
5422
  async (updates) => {
5421
- await this.core.configManager.save({
5422
- channels: { telegram: updates }
5423
- });
5423
+ if (this.saveTopicIds) {
5424
+ await this.saveTopicIds(updates);
5425
+ } else {
5426
+ await this.core.configManager.save({
5427
+ channels: { telegram: updates }
5428
+ });
5429
+ }
5424
5430
  }
5425
5431
  );
5426
5432
  this.notificationTopicId = topics.notificationTopicId;
@@ -6401,4 +6407,4 @@ export {
6401
6407
  BaseRenderer,
6402
6408
  TelegramAdapter
6403
6409
  };
6404
- //# sourceMappingURL=chunk-5ZNBNIK3.js.map
6410
+ //# sourceMappingURL=chunk-XBZIHNKV.js.map