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(
|
|
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:
|
|
88
|
+
await this.telegram.answerInlineQuery(response.queryId, response.queryResults, { cache_time: 0 });
|
|
89
89
|
break;
|
|
90
90
|
case 'delay':
|
|
91
91
|
break;
|
package/entities/botInstance.ts
CHANGED
|
@@ -80,7 +80,7 @@ export class BotInstance {
|
|
|
80
80
|
this.initializeMessageProcessing(
|
|
81
81
|
options.verboseLoggingForIncomingMessage ?? false
|
|
82
82
|
);
|
|
83
|
-
this.initializeInlineQueryProcessing(
|
|
83
|
+
this.initializeInlineQueryProcessing(1000 as Milliseconds);
|
|
84
84
|
this.initializeScheduledProcessing(
|
|
85
85
|
options.scheduledPeriod ?? hoursToSeconds(1 as Hours)
|
|
86
86
|
);
|
package/package.json
CHANGED