Optimize docker image build

This commit is contained in:
2022-03-14 20:18:30 +03:00
parent 6d50c45fa4
commit c7bad506e1
4 changed files with 418 additions and 424 deletions

View File

@@ -93,6 +93,8 @@ export default class BotsManager {
const webhookInfo = await bot.telegram.getWebhookInfo();
const previousPendingUpdateCount = this.botsPendingUpdatesCount[state.id] || 0;
console.log(state.id, previousPendingUpdateCount, webhookInfo.pending_update_count);
if (previousPendingUpdateCount !== 0 && webhookInfo.pending_update_count !== 0) {
this._setWebhook(bot, state);
}