diff --git a/src/main.ts b/src/main.ts index 33e1ae9..0487521 100644 --- a/src/main.ts +++ b/src/main.ts @@ -83,7 +83,10 @@ async function startWebhook(config: WebhookConfig) { } try { - if (config.isWebhookMode) await startWebhook(config); + if (config.isWebhookMode) + await setTimeout(() => { + if (config.isWebhookMode) startWebhook(config); + }, 20000); else if (config.isPollingMode) await startPolling(config); } catch (error) { logger.error(error);