Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

codefresh-contrib/telegram-notifier

Repository files navigation

Telegram notify plugin

Telegram plugin which gives the opportunity send any messages to users via bot.

Using example

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.png

Required variables

  • TELEGRAM_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)

Optional variables

  • TELEGRAM_STATUS - send info about current build, if pass - all others variables will be ignore
  • TELEGRAM_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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published