mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Optimize docker image build
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user