feat(notifications): add telegram support (#299)

* feat(notifications): add telegram support

* feat(notifications): change list view

* refactor(notifications): overall setup

* feat(notifications): forms add telegram
This commit is contained in:
Ludvig Lundgren 2022-06-13 17:01:36 +02:00 committed by GitHub
parent 2ab7133dd0
commit 38addb99e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 630 additions and 457 deletions

View file

@ -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;
}