Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
Send a Telegram message telegram
Send any message to a Telegram channel or user.
arguments
sendMessage:
type: telegram
title: |-
Sends a notification with information about the current build.
Requires a git trigger
arguments:
telegram_token: '${{TOKEN}}'
telegram_to:
- 99999999
sendMessage:
type: telegram
title: |-
Sends a notification with your customized message
and images to be attached
arguments:
telegram_token: '${{TOKEN}}'
telegram_to:
- 99999999
telegram_message: >-
Hello, how are you? There was a build triggered by ${{CF_BUILD_INITIATOR}}
You could see the build [here](${{CF_BUILD_URL}}) and the commit
[here](${{CF_COMMIT_URL}})
telegram_images:
- 'https://codefresh.io/docs/assets/brand/codefresh-social.png'