We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a286bd commit 951fcf5Copy full SHA for 951fcf5
src/helpers/notifme.ts
@@ -331,7 +331,7 @@ export const sendNotification = async (message: string) => {
331
if (getSecret("NOTIFICATION_TELEGRAM") && getSecret("NOTIFICATION_TELEGRAM_BOT_KEY")) {
332
console.log("Sending Telegram");
333
try {
334
- const chatIds = getSecret("NOTIFICATION_TELEGRAM_CHAT_ID").split(",");
+ const chatIds = getSecret("NOTIFICATION_TELEGRAM_CHAT_ID")?.split(",") ?? [];
335
for (const chatId of chatIds) {
336
await axios.post(
337
`https://api.telegram.org/bot${getSecret("NOTIFICATION_TELEGRAM_BOT_KEY")}/sendMessage`,
0 commit comments