Skip to content

allinmap/webhooker-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Webhooker Bot

This is a Telegram bot system that receives webhook requests from various hosts and forwards formatted messages to Telegram chats.

Architecture

architecture

  • Webhook Receiver: Receives HTTP requests from different hosts
  • Bot Backend: Processes messages and sends them to Telegram
  • Configuration: Manages message templates and host mappings

Setup

  1. Install dependencies:
go mod tidy
  1. Configure your bot in config/config.yaml

  2. Run the bot:

go run cmd/main.go

Configuration

Edit config/config.yaml to configure:

  • Message templates for different hosts
  • Host-specific configurations

Endpoints

  • POST /webhook/{host} - Receive webhook from specific host
  • GET /health - Health check endpoint

About

a telegram bot to receive events from a backend and send them in a chat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.0%
  • Dockerfile 5.0%