Files
ironmount/app/server/modules/notifications/builders/telegram.ts
Nicolas Meienberger dbd9ae2241 chore: generate types
2025-11-30 17:05:40 +01:00

6 lines
256 B
TypeScript

import type { NotificationConfig } from "~/schemas/notifications";
export function buildTelegramShoutrrrUrl(config: Extract<NotificationConfig, { type: "telegram" }>): string {
return `telegram://${config.botToken}@telegram?channels=${config.chatId}`;
}