chore: generate types

This commit is contained in:
Nicolas Meienberger
2025-11-30 17:05:40 +01:00
parent 0287bca4bb
commit dbd9ae2241
4 changed files with 35 additions and 46 deletions

View File

@@ -1,8 +1,5 @@
import type { NotificationConfig } from "~/schemas/notifications";
export function buildTelegramShoutrrrUrl(config: Extract<NotificationConfig, { type: "telegram" }>): string {
// Shoutrrr format: telegram://bottoken@telegram?channels=chatid1,chatid2
// config: { type: 'telegram', botToken: string, chatId: string }
// Do NOT encode botToken or chatId; Shoutrrr expects raw values (colon, dash, etc.)
return `telegram://${config.botToken}@telegram?channels=${config.chatId}`;
return `telegram://${config.botToken}@telegram?channels=${config.chatId}`;
}