17 lines
420 B
PowerShell
17 lines
420 B
PowerShell
param(
|
|
[string]$Title = "Ralph Telegram test",
|
|
[string]$Message = "Telegram notifications are enabled."
|
|
)
|
|
|
|
. (Join-Path $PSScriptRoot "Common.ps1")
|
|
|
|
$result = Send-TelegramNotification `
|
|
-EventName "run_started" `
|
|
-Title $Title `
|
|
-Message $Message `
|
|
-RunId ("telegram-test-" + (Get-Date -Format "yyyyMMdd-HHmmss")) `
|
|
-Stage "test" `
|
|
-Status "manual"
|
|
|
|
($result | ConvertTo-Json -Depth 20)
|