If you need to reference existing alert channels that were created outside of your CLI project, use
fromId().Configuration
- Telegram Alert Channel
- General Alert Channel
Configure Telegram-specific settings:
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | ✅ | - | Friendly name to recognise the integration |
apiKey | string | ✅ | - | The API key associated with your Telegram bot |
chatId | string | ✅ | - | The chat ID of the Telegram channel you want to send alerts to |
payload | string | ❌ | Includes basic information about the alert, including a link to the check result. | The message sent to the chat when an alert is triggered |
Telegram Alert Channel Options
Friendly name to recognise the integration.
The API key associated with your Telegram bot.
The chat ID of the Telegram channel you want to send alerts to.
The message sent to the chat when an alert is triggered. If this is not specified, we’ll send a default payload with some basic information about the alert.We have handlebar helpers and variables available for building custom payloads.
General Alert Channel Options
These options are valid for all alert channels types.Whether to send notifications when checks recover from a failed or degraded state. Default value is
true.Whether to send notifications when checks become degraded. Default value is
false.Whether to send notifications when a SSL/TLS certificate is about to expire. Default value is Learn more about SSL alerts.
false.Number of days before the SSL/TLS certificate expiry date to send notifications. Only relevant when Learn more about SSL alerts.
sslExpiry is enabled. Default value is 30.