跳到主要内容

Telegram Notification with YAML

List of YAML parameters and examples for the "Telegram Notification" action.

YAML parameters for Telegram Notification

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to TELEGRAM.
integration_hash
必填
StringThe ID of the integration.
content
必填
StringThe content of the notification.
file_attachmentsString[]The attached files.

YAML example for Telegram Notification

actions:
- action: "Send notification to Telegram"
type: "TELEGRAM"
content: "[#$BUDDY_EXECUTION_ID] $BUDDY_PIPELINE_NAME execution by [$BUDDY_INVOKER_NAME]($BUDDY_INVOKER_URL)"
integration_hash: "5ddb7c180fb38be67bd78a88a"
file_attachments:
- "fs:///file1"
- "fs:///file2"