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

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

Awesome Lists containing this project

README

          

# Telegram Webhook

A middleware API to convert webhook from supported services to Telegram messages

## Deploy to Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](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