@ -18,47 +18,65 @@ namespace NzbDrone.Core.Notifications.Telegram
public override void OnGrab ( GrabMessage grabMessage )
{
_proxy . SendNotification ( EPISODE_GRABBED_TITLE , grabMessage . Message , Settings ) ;
var title = Settings . IncludeAppNameInTitle ? EPISODE_GRABBED_TITLE_BRANDED : EPISODE_GRABBED_TITLE ;
_proxy . SendNotification ( title , grabMessage . Message , Settings ) ;
}
public override void OnDownload ( DownloadMessage message )
{
_proxy . SendNotification ( EPISODE_DOWNLOADED_TITLE , message . Message , Settings ) ;
var title = Settings . IncludeAppNameInTitle ? EPISODE_DOWNLOADED_TITLE_BRANDED : EPISODE_DOWNLOADED_TITLE ;
_proxy . SendNotification ( title , message . Message , Settings ) ;
}
public override void OnEpisodeFileDelete ( EpisodeDeleteMessage deleteMessage )
{
_proxy . SendNotification ( EPISODE_DELETED_TITLE , deleteMessage . Message , Settings ) ;
var title = Settings . IncludeAppNameInTitle ? EPISODE_DELETED_TITLE_BRANDED : EPISODE_DELETED_TITLE ;
_proxy . SendNotification ( title , deleteMessage . Message , Settings ) ;
}
public override void OnSeriesAdd ( SeriesAddMessage message )
{
_proxy . SendNotification ( SERIES_ADDED_TITLE , message . Message , Settings ) ;
var title = Settings . IncludeAppNameInTitle ? SERIES_ADDED_TITLE_BRANDED : SERIES_ADDED_TITLE ;
_proxy . SendNotification ( title , message . Message , Settings ) ;
}
public override void OnSeriesDelete ( SeriesDeleteMessage deleteMessage )
{
_proxy . SendNotification ( SERIES_DELETED_TITLE , deleteMessage . Message , Settings ) ;
var title = Settings . IncludeAppNameInTitle ? SERIES_DELETED_TITLE_BRANDED : SERIES_DELETED_TITLE ;
_proxy . SendNotification ( title , deleteMessage . Message , Settings ) ;
}
public override void OnHealthIssue ( HealthCheck . HealthCheck healthCheck )
{
_proxy . SendNotification ( HEALTH_ISSUE_TITLE , healthCheck . Message , Settings ) ;
var title = Settings . IncludeAppNameInTitle ? HEALTH_ISSUE_TITLE_BRANDED : HEALTH_ISSUE_TITLE ;
_proxy . SendNotification ( title , healthCheck . Message , Settings ) ;
}
public override void OnHealthRestored ( HealthCheck . HealthCheck previousCheck )
{
_proxy . SendNotification ( HEALTH_RESTORED_TITLE , $"The following issue is now resolved: {previousCheck.Message}" , Settings ) ;
var title = Settings . IncludeAppNameInTitle ? HEALTH_RESTORED_TITLE_BRANDED : HEALTH_RESTORED_TITLE ;
_proxy . SendNotification ( title , $"The following issue is now resolved: {previousCheck.Message}" , Settings ) ;
}
public override void OnApplicationUpdate ( ApplicationUpdateMessage updateMessage )
{
_proxy . SendNotification ( APPLICATION_UPDATE_TITLE , updateMessage . Message , Settings ) ;
var title = Settings . IncludeAppNameInTitle ? APPLICATION_UPDATE_TITLE_BRANDED : APPLICATION_UPDATE_TITLE ;
_proxy . SendNotification ( title , updateMessage . Message , Settings ) ;
}
public override void OnManualInteractionRequired ( ManualInteractionRequiredMessage message )
{
_proxy . SendNotification ( MANUAL_INTERACTION_REQUIRED_TITLE , message . Message , Settings ) ;
var title = Settings . IncludeAppNameInTitle ? MANUAL_INTERACTION_REQUIRED_TITLE_BRANDED : MANUAL_INTERACTION_REQUIRED_TITLE ;
_proxy . SendNotification ( title , message . Message , Settings ) ;
}
public override ValidationResult Test ( )