This is a Telegram bot system that receives webhook requests from various hosts and forwards formatted messages to Telegram chats.
- Webhook Receiver: Receives HTTP requests from different hosts
- Bot Backend: Processes messages and sends them to Telegram
- Configuration: Manages message templates and host mappings
- Install dependencies:
go mod tidy-
Configure your bot in
config/config.yaml -
Run the bot:
go run cmd/main.goEdit config/config.yaml to configure:
- Message templates for different hosts
- Host-specific configurations
POST /webhook/{host}- Receive webhook from specific hostGET /health- Health check endpoint
