Let’s get straight to the point.
After reading this, you’ll be able to send a telegram message to a
chat_id with one command.
set the following secrets in the settings of your repository where you want to run the workflow:
you’ll get this token from the
BotFather, just issue the
this is the receivers
chat_id, you can find out yours with @userinfobot.
github actions workflow
this is what is looks like. we’re going to use a small npm package
name: telegram message example on: [push] jobs: build_deploy: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@master - name: install run: | npm install - name: send-telegram-message env: TELEGRAM_TOKEN: $ TELEGRAM_CHANNEL: $ TELEGRAM_TEXT: "Deployed to https://cri.dev" run: | npx simple-telegram-message@latest