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.
new TelegramAlertChannel('my-telegramchannel-1', { name: 'My Telegram channel', apiKey: 'xxxxxx', chatId: 'xxxxxx', payload: ` <b>{{ALERT_TITLE}}</b> at {{RUN_LOCATION}} ({{RESPONSE_TIME}}ms) {{#if AI_ANALYSIS_CLASSIFICATION}} AI Analysis: <i>{{AI_ANALYSIS_CLASSIFICATION}}</i> {{AI_ANALYSIS_ROOT_CAUSE}} <a href="{{AI_ANALYSIS_LINK}}">Read full analysis</a> {{/if}} Tags: {{#each TAGS}} <i><b>{{this}}</b></i> {{#unless @last}},{{/unless}} {{/each}} <a href="{{RESULT_LINK}}">View check result</a> `})