Simple telegram message with GitHub Actions

by Christian Fei @ 2019-08-29

207 words, 1 minute reading time

#post #javascript #nodejs #featured #tutorial 

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 /newbot command.


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 simple-telegram-message

name: telegram message example
on: [push]
    runs-on: ubuntu-18.04
      - uses: actions/[email protected]
      - name: install
        run: |
          npm install
      - name: send-telegram-message
          TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
          TELEGRAM_TEXT: "Deployed to"
        run: |
          npx [email protected]

et voilà


FEEDBACK @christian_fei

Featured blog posts

Twitter oauth by example in node.js So long, and thanks for all the veggies Simplest vanilla javascript static site blog search for jekyll, hugo, 11.ty Minimal environments with dotenv and node.js Connect to mongodb with monk in node.js Lazy loading images in 2020 Recover from failed `lerna` publish The cleanest way to maintain connect / express middlewares in node.js Better web scraping with node.js My blogging stack in 2020