Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.18 KB

File metadata and controls

55 lines (39 loc) · 1.18 KB

Telegram Webhook

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

Deploy to Heroku

Deploy

Installation

Build with Go

  go build
  ./telegram-webhook

A server will start on 8080 port.

Enviroment variables:

You can create a .env on project root folder

PORT=8081 # Choose a diferent port
TELEGRAM_BOT_DEBUG=true # Show debug information from Telegram Bot

API Reference

BitBucket WebHook

  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

  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