mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
6 lines
256 B
TypeScript
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}`;
|
|
}
|