Add Telegram bot integration for real-time alert notifications
- Implemented ITelegramNotificationService and TelegramNotificationService for sending alerts via Telegram. - Updated MonitoringSettings to include Telegram configuration options. - Enhanced AlertService to send alerts and resolutions through Telegram. - Added API endpoints for checking Telegram status and sending test alerts. - Updated README and TELEGRAM_SETUP.md with setup instructions and features. - Included example configuration in appsettings.telegram.example.json.
This commit is contained in:
@@ -51,6 +51,7 @@ namespace ResourceMonitorService
|
||||
services.AddSingleton<ISystemInfoService, SystemInfoService>();
|
||||
services.AddSingleton<IResourceMonitorService, Services.ResourceMonitorService>();
|
||||
services.AddSingleton<IGameDetectionService, GameDetectionService>();
|
||||
services.AddSingleton<ITelegramNotificationService, TelegramNotificationService>();
|
||||
services.AddSingleton<IAlertService, AlertService>();
|
||||
|
||||
// Register the main worker service
|
||||
|
||||
Reference in New Issue
Block a user