An open API service indexing awesome lists of open source software.

https://github.com/gautamajay52/github-webhook-bot

It is a Simple Telegram Bot, which will listen to GitHub Webhook and inform via Telegram
https://github.com/gautamajay52/github-webhook-bot

cpp github github-webhooks telegram-bot webhook

Last synced: 3 months ago
JSON representation

It is a Simple Telegram Bot, which will listen to GitHub Webhook and inform via Telegram

Awesome Lists containing this project

README

        

# GitHub-Webhook-Bot 🤖 [![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fgautamajay52%2FGitHub-Webhook-Bot&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://github.com/gautamajay52/GitHub-Webhook-Bot)
Simple Telegram Bot, which will listen to GitHub Webhook and inform via Telegram

## Setting Up Config ✍
1) Go to `src/helper.h` ---> [Here](https://github.com/gautamajay52/GitHub-Webhook-Bot/blob/main/src/helper.h#L10)
2) Edit your Bot Token.
3) Edit your ID.
4) Add your PORT.
5) Add your forwading url in webhook section of your repo.
```bash
https://your-forwading-url/github
```
6) Set your webhook(Only if you wanted to receive `/start` command feedback)
```bash
curl "https://api.telegram.org/bot/setWebhook?url=https://your-forwading-url/telegram"
```

## To Build and Run: 🏃‍♂

```bash
# cloning repo
git clone https://github.com/gautamajay52/GitHub-Webhook-Bot
cd GitHub-Webhook-Bot

# Installing Requirements
sudo apt-get install libboost-all-dev

# To Build
g++ src/main.cpp -lpthread -lboost_system -lz -o git.out

# To Run
./git.out

```

## Easy 👌
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

## Credits: 🌎
* [GautamKumar(me)](https://github.com/gautamajay52) for [Nothing](https://github.com/gautamajay52/GitHub-Webhook-Bot)😬
* [CrowCpp](https://github.com/crowcpp/crow) for [crow_all.h](https://github.com/gautamajay52/GitHub-Webhook-Bot/blob/main/src/crow_all.h) 😁