telegram notification

This commit is contained in:
Jakub Trávník
2025-11-30 15:15:26 +01:00
parent 3bf3b22b96
commit 6fbb11fefe
7 changed files with 111 additions and 6 deletions

View File

@@ -1990,6 +1990,10 @@ export type GetScheduleNotificationsResponses = {
} | {
shoutrrrUrl: string;
type: 'custom';
} | {
type: 'telegram';
botToken: string;
chatId: string;
} | {
type: 'discord';
webhookUrl: string;
@@ -2007,7 +2011,7 @@ export type GetScheduleNotificationsResponses = {
enabled: boolean;
id: number;
name: string;
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack' | 'telegram';
updatedAt: number;
};
destinationId: number;
@@ -2074,6 +2078,10 @@ export type UpdateScheduleNotificationsResponses = {
} | {
shoutrrrUrl: string;
type: 'custom';
} | {
type: 'telegram';
botToken: string;
chatId: string;
} | {
type: 'discord';
webhookUrl: string;
@@ -2091,7 +2099,7 @@ export type UpdateScheduleNotificationsResponses = {
enabled: boolean;
id: number;
name: string;
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack' | 'telegram';
updatedAt: number;
};
destinationId: number;
@@ -2147,6 +2155,10 @@ export type ListNotificationDestinationsResponses = {
} | {
shoutrrrUrl: string;
type: 'custom';
} | {
type: 'telegram';
botToken: string;
chatId: string;
} | {
type: 'discord';
webhookUrl: string;
@@ -2164,7 +2176,7 @@ export type ListNotificationDestinationsResponses = {
enabled: boolean;
id: number;
name: string;
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack' | 'telegram';
updatedAt: number;
}>;
};
@@ -2204,6 +2216,10 @@ export type CreateNotificationDestinationData = {
} | {
shoutrrrUrl: string;
type: 'custom';
} | {
type: 'telegram';
botToken: string;
chatId: string;
} | {
type: 'discord';
webhookUrl: string;
@@ -2260,6 +2276,10 @@ export type CreateNotificationDestinationResponses = {
} | {
shoutrrrUrl: string;
type: 'custom';
} | {
type: 'telegram';
botToken: string;
chatId: string;
} | {
type: 'discord';
webhookUrl: string;
@@ -2277,7 +2297,7 @@ export type CreateNotificationDestinationResponses = {
enabled: boolean;
id: number;
name: string;
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack' | 'telegram';
updatedAt: number;
};
};
@@ -2363,6 +2383,10 @@ export type GetNotificationDestinationResponses = {
} | {
shoutrrrUrl: string;
type: 'custom';
} | {
type: 'telegram';
botToken: string;
chatId: string;
} | {
type: 'discord';
webhookUrl: string;
@@ -2380,7 +2404,7 @@ export type GetNotificationDestinationResponses = {
enabled: boolean;
id: number;
name: string;
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack' | 'telegram';
updatedAt: number;
};
};
@@ -2420,6 +2444,10 @@ export type UpdateNotificationDestinationData = {
} | {
shoutrrrUrl: string;
type: 'custom';
} | {
type: 'telegram';
botToken: string;
chatId: string;
} | {
type: 'discord';
webhookUrl: string;
@@ -2486,6 +2514,10 @@ export type UpdateNotificationDestinationResponses = {
} | {
shoutrrrUrl: string;
type: 'custom';
} | {
type: 'telegram';
botToken: string;
chatId: string;
} | {
type: 'discord';
webhookUrl: string;
@@ -2503,7 +2535,7 @@ export type UpdateNotificationDestinationResponses = {
enabled: boolean;
id: number;
name: string;
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack' | 'telegram';
updatedAt: number;
};
};