-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
The NotificationProvider interface provides a function abstraction to send a notification through a certain provider, for this issue, it's via Telegram. Using grammy, implement message sending to a specific chatId.
Since there is no constructor, you should create one that bridge the gap between the configuration (in which where we would store the botToken and chatId) and what's needed by grammy.
adelite/src/notification/TelegramProvider.ts
Lines 4 to 7 in dff5d23
| export class TelegramProvider implements BaseNotificationProvider { | |
| notify(releases: Release[], abortSignal?: AbortSignal | undefined): Promise<void> { | |
| throw new Error("Method not implemented."); | |
| } |
You can see the configuration for Telegram here:
Lines 21 to 24 in dff5d23
| telegram: z.object({ | |
| bot_token: z.string(), | |
| chat_id: z.string() | |
| }).optional(), |
Reactions are currently unavailable