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
- Host: GitHub
- URL: https://github.com/gautamajay52/github-webhook-bot
- Owner: gautamajay52
- License: gpl-3.0
- Created: 2021-03-06T18:52:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-24T21:40:43.000Z (over 3 years ago)
- Last Synced: 2025-03-25T02:36:42.196Z (3 months ago)
- Topics: cpp, github, github-webhooks, telegram-bot, webhook
- Language: C++
- Homepage:
- Size: 78.1 KB
- Stars: 35
- Watchers: 1
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub-Webhook-Bot 🤖 [](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 👌
[](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) 😁