Essentials
- Call
setWebhookwithurlandsecret_token. - Reject requests where
X-Telegram-Bot-Api-Secret-Tokendoes not match. - Return 200 quickly; do heavy work after.
- Use
getWebhookInfowhen debugging delivery.
Reverse proxy
Terminate TLS at Nginx/Caddy and proxy to localhost. See the Nginx webhook helper.