From 02fb217ef028d1abb3b37aa2a6356afa66146339 Mon Sep 17 00:00:00 2001 From: kravetsone <57632712+kravetsone@users.noreply.github.com> Date: Wed, 1 Jan 2025 23:43:39 +0300 Subject: [PATCH] chore: small revert of withRetries --- src/bot.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/bot.ts b/src/bot.ts index db7af9a..74187c0 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -1225,12 +1225,12 @@ export class Bot< await this.init(); if (!webhook) { - const r = await withRetries(() => - this.api.deleteWebhook({ - drop_pending_updates: dropPendingUpdates, - suppress: true, - }), - ); + // const r = await withRetries(() => + await this.api.deleteWebhook({ + drop_pending_updates: dropPendingUpdates, + // suppress: true, + }); + // ); this.updates.startPolling({ allowed_updates: allowedUpdates, @@ -1249,14 +1249,14 @@ export class Bot< if (this.updates.isStarted) this.updates.stopPolling(); // TODO: do we need await it? - withRetries(() => - this.api.setWebhook({ - ...webhook, - drop_pending_updates: dropPendingUpdates, - allowed_updates: allowedUpdates, - suppress: true, - }), - ); + // withRetries(() => + await this.api.setWebhook({ + ...webhook, + drop_pending_updates: dropPendingUpdates, + allowed_updates: allowedUpdates, + // suppress: true, + }); + // ); this.runImmutableHooks("onStart", { plugins: this.dependencies,