Browse Source

added error messaging

feature/promiseMigration
Nareshkumar Rao 3 years ago
parent
commit
ebf1128930
  1. 8
      src/telegram.ts

8
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);
});

Loading…
Cancel
Save