Telegram plugin which gives the opportunity send any messages to users via bot.
version: '1.0'
...
steps:
...
sendMessage:
image: codefresh/telegramnotifier
environment:
- TELEGRAM_TOKEN=TOKEN
- TELEGRAM_TO=99999999
- TELEGRAM_MESSAGE=Hello {{{userLink}}}, how are you
- TELEGRAM_IMAGES=https://codefresh.io/docs/assets/brand/codefresh-social.pngTELEGRAM_TOKEN- token of your bot (cat get from @BotFather)TELEGRAM_TO- array of bot`s user id who will receive a message separated by comma (id you can retrieve from @myidbot)
TELEGRAM_STATUS- send info about current build, if pass - all others variables will be ignoreTELEGRAM_MESSAGE- text of message which will be send to user, with Handlebars.js,-
available vars:
{{buildTrigger}}{{buildInitiator}}{{buildId}}{{buildTimestamp}}{{buildUrl}}{{repoOwner}}{{repoName}}{{branch}}{{revision}}{{commitAuthor}}{{commitUrl}}{{commitMessage}}{{userID}}- id of current telegram user{{{userLink}}}- link to current telegram user
-
for text markup use Markdown
-
TELEGRAM_IMAGES- array of link to images separated by comma, which will be attached to message