- Create an A/AAAA record for
hooks.example.comto your VPS. - Run your bot on
127.0.0.1:8080with secret header checks. - Caddyfile:
hooks.example.com { reverse_proxy 127.0.0.1:8080 } - setWebhook with url and secret_token (see Telegram URL builder)
- Confirm with getWebhookInfo and a real /start.
Domain registrar option: Namecheap Domains.