From ebf1128930556f7799fd82289291b8868196bb52 Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao Date: Thu, 5 Aug 2021 19:36:55 +0200 Subject: [PATCH] added error messaging --- src/telegram.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); +}); +