chz-telegram-bot 0.1.6 → 0.1.8

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.
@@ -36,7 +36,7 @@ class BotInstance {
36
36
  new jsonFileStorage_1.JsonFileStorage(options.name, actions, options.storagePath);
37
37
  this.api = new telegramApi_1.TelegramApiService(this.name, this.telegraf.telegram, this.storage, this.logger);
38
38
  this.initializeMessageProcessing(options.verboseLoggingForIncomingMessage ?? false);
39
- this.initializeInlineQueryProcessing(500);
39
+ this.initializeInlineQueryProcessing(1000);
40
40
  this.initializeScheduledProcessing(options.scheduledPeriod ?? (0, timeConvertions_1.hoursToSeconds)(1));
41
41
  this.storage.saveMetadata(actions, this.name);
42
42
  this.logger.logWithTraceId(this.name, (0, traceFactory_1.createTrace)(this, this.name, 'Start'), 'System', 'Starting bot...');
@@ -85,7 +85,7 @@ class TelegramApiService {
85
85
  });
86
86
  break;
87
87
  case 'inlineQuery':
88
- await this.telegram.answerInlineQuery(response.queryId, response.queryResults, { cache_time: 3600 });
88
+ await this.telegram.answerInlineQuery(response.queryId, response.queryResults, { cache_time: 0 });
89
89
  break;
90
90
  case 'delay':
91
91
  break;
@@ -80,7 +80,7 @@ export class BotInstance {
80
80
  this.initializeMessageProcessing(
81
81
  options.verboseLoggingForIncomingMessage ?? false
82
82
  );
83
- this.initializeInlineQueryProcessing(500 as Milliseconds);
83
+ this.initializeInlineQueryProcessing(1000 as Milliseconds);
84
84
  this.initializeScheduledProcessing(
85
85
  options.scheduledPeriod ?? hoursToSeconds(1 as Hours)
86
86
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chz-telegram-bot",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "async-sema": "^3.1.1",
@@ -156,7 +156,7 @@ export class TelegramApiService {
156
156
  await this.telegram.answerInlineQuery(
157
157
  response.queryId,
158
158
  response.queryResults,
159
- { cache_time: 3600 }
159
+ { cache_time: 0 }
160
160
  );
161
161
  break;
162
162
  case 'delay':