Measure handler latency before optimizing
Time ACK, DB and LLM separately.
Default to not logging message bodies
Log event types and ids; keep content out unless required.
Rotate webhook URLs without downtime
Run dual endpoints briefly, then switch setWebhook.
First-week checklist for a bot on a small VPS
Updates, firewall, systemd, backups and alerts.
Why slash commands beat prefix commands for public bots
Discoverability, permissions and less Message Content need.
Pin bot dependency versions in production
Lockfiles exist for a reason.