Code Monkey home page Code Monkey logo

telegrambridge's Introduction

Telegram Bridge

This is a GitHub Action plugin to notify about the changes in GitHub to Telegram Chat via Bot. This could highly help in incresing the development pace.

What all can this do ?

If you're using the provided main.yaml (recommended)

Will Notify about :

  • Pushes
  • Pull Requests (opened, closed, edited, ready_for_review, review_requested, reopened)
  • Pull Request Review Comments (created)
  • Issues (opened, edited, pinned, closed, reopened, assigned, labeled)
  • Issue Comments (created)

the limits are not the boundary, but set for reducing the message bombarding, and it can be easily changed at the main.yaml file at your repository. This could help Action Triggers Docs.

How to Use this ?

This will be available as a plugin here.

Or can be used through this main.yaml file > move it to /.github/workflows/main.yml

Connect it to a Telegram bot.

  • Token is the token of the Bot given by BotFather
  • Id is the Channel id or your user id, depends on how you need the message to be delivered.

How does the message looks like ?

Sample Message

What's next ?

This is a tailored implementation. This can be changed or re-tailored at main.go. Curresponting chages must be made at the action's main.yaml too

Thanks to Yanzay and Athul.

telegrambridge's People

Contributors

ashpool37 avatar gokuldas027 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

telegrambridge's Issues

Message syntax/format and other improvements

Hi, I just discovered this action. This is (to my knowledge) the action that reacts to the most (range of) github action event triggers.

So I started using it in some of my projects.

This issue is a suggestion to add more information to the sent messages, for example the branch name and the pushed changes url, as well as to improve the syntax (a prettier message would be nice).

A good inspiration could be t.me/GitHubBot.

If you don't have time to do it, I'll consider forking this and work on it myself, but I'm busy in this period.

Error trying sending messages

Hi guys,

When I try to send a message I get this error:

2020/10/03 16:49:57 unable to send message: Bad Request: can't parse entities: Character '.' is reserved and must be escaped with the preceding ''

This is my job config:

notifier:
    if: always()

    needs:
      - linter
      - tests
    runs-on: ubuntu-latest

    steps:
      - name: Telegram notifier
        uses: GokulDas027/TelegramBridge@master
        with:
          chat: ${{ secrets.TELEGRAM_CHAT_ID }}
          token: ${{ secrets.TELEGRAM_TOKEN }}
          status: ${{ job.status }}
          event: ${{ github.event_name }}
          actor: ${{ github.actor }}

What could be happening?
I have tested the bot with other actions and it works perfectly.

Thanks!

Getting this error - Unrecognised Secrets

##[error](Line: 7, Col: 14): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.chat
##[error](Line: 10, Col: 14): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.token
##[error]Fail to load /home/runner/work/_actions/GokulDas027/TelegramBridge/master/action.yml

Unable to send message: unescaped dash

I'm getting this error message when running Notifier:
unable to send message: Bad Request: can't parse entities: Character '-' is reserved and must be escaped with the preceding '\'
I suspect this is due to our organization name containing dashes. Please make sure dash symbols in organization and repository names are escaped.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.