- {notification.events.map((n, idx) => (
-
- {n}
-
- ))}
+
+
+ {notification.events.length}
+
-
diff --git a/web/src/types/Notification.d.ts b/web/src/types/Notification.d.ts
index baca81b..4703ab2 100644
--- a/web/src/types/Notification.d.ts
+++ b/web/src/types/Notification.d.ts
@@ -1,4 +1,4 @@
-type NotificationType = "DISCORD";
+type NotificationType = "DISCORD" | "TELEGRAM";
interface Notification {
id: number;
@@ -6,5 +6,7 @@ interface Notification {
enabled: boolean;
type: NotificationType;
events: string[];
- webhook: string;
+ webhook?: string;
+ token?: string;
+ channel?: string;
}
\ No newline at end of file