telegram-webhook-bot
HTTPS webhook service on lububu.ru
Telegram bot service

Webhook-first
landing for your VPS bot.

A compact production stack with PHP 8.2, nginx, php-fpm, PostgreSQL and a Telegram webhook endpoint. Built to stay neat on a VPS, answer fast, and look like an actual product instead of a dead placeholder.

What this service does

Receives Telegram updates via HTTPS webhook, validates payloads, stores users in PostgreSQL, checks access by allowed Telegram IDs, and responds to commands without dragging in a heavy framework.

/start
Greets the user and shows a short intro.
/help
Returns the list of supported commands.
/ping and /echo
Quick diagnostics and simple text reflection.

Built for a clean VPS deploy

nginx serves the site, php-fpm runs the app, PostgreSQL stores Telegram users, and Docker Compose keeps the stack repeatable. The main page stays sharp, while the webhook endpoint remains strict and purpose-built.

Security headers
Basic hardening on the web layer.
Structured logs
stdout/stderr for containers and file logs for persistence.
PostgreSQL sync
Telegram users are upserted on the first message and refreshed on later activity.