https://github.com/diogenesc/telegram-webhook
Parses webhooks from supported services and sends to Telegram
https://github.com/diogenesc/telegram-webhook
bot telegram
Last synced: 3 months ago
JSON representation
Parses webhooks from supported services and sends to Telegram
- Host: GitHub
- URL: https://github.com/diogenesc/telegram-webhook
- Owner: diogenesc
- Created: 2021-08-19T02:48:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T20:20:09.000Z (over 3 years ago)
- Last Synced: 2024-06-20T00:32:35.989Z (about 2 years ago)
- Topics: bot, telegram
- Language: Go
- Homepage:
- Size: 206 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telegram Webhook
A middleware API to convert webhook from supported services to Telegram messages
## Deploy to Heroku
[](https://heroku.com/deploy)
## Installation
Build with Go
```bash
go build
./telegram-webhook
```
A server will start on 8080 port.
#### Enviroment variables:
You can create a `.env` on project root folder
```dotenv
PORT=8081 # Choose a diferent port
TELEGRAM_BOT_DEBUG=true # Show debug information from Telegram Bot
```
## API Reference
### BitBucket WebHook
```http
POST /bitbucket
```
| Query Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| `bot_token` | `string` | **Required**. Your Telegram Bot Token |
| `chat_id` | `string` | **Required**. Where to send messages |
#### Supported triggers:
- Pipelines
- Pull Request
### GitHub WebHook
```http
POST /github
```
| Query Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| `bot_token` | `string` | **Required**. Your Telegram Bot Token |
| `chat_id` | `string` | **Required**. Where to send messages |
#### Supported triggers:
- Workflows