diff --git a/src/telegram.ts b/src/telegram.ts index 0c2515e..9cca20a 100644 --- a/src/telegram.ts +++ b/src/telegram.ts @@ -21,4 +21,10 @@ export async function sendTelegramMessage( }); } -setTelegramWebHook(); + +setTelegramWebHook() +.catch(error=>{ + console.error("Error setting Telegram Webhook"); + error instanceof Error && console.error(error.message); +}); +