* feat: add generic webhook form & refactor each type in its own form * chore: pr feedbacks * fix(email-form): filter out empty emails
5 lines
252 B
TypeScript
5 lines
252 B
TypeScript
import type { NotificationConfig } from "~/schemas/notifications";
|
|
|
|
export const buildTelegramShoutrrrUrl = (config: Extract<NotificationConfig, { type: "telegram" }>) => {
|
|
return `telegram://${config.botToken}@telegram?channels=${config.chatId}`;
|
|
};
|