How to Run a Telegram Bot on a Server: systemd, Logs, Auto-Restart
A Telegram bot in Python (aiogram) or Node.js (grammY) as a systemd service: a separate user, the token outside the code, auto-restart, logs and updates.
All articles on this topic. All articles
A Telegram bot in Python (aiogram) or Node.js (grammY) as a systemd service: a separate user, the token outside the code, auto-restart, logs and updates.
Use free, vmstat, dmesg and journalctl to tell a server is out of memory, find the process the OOM killer killed and limit a service's or container's memory.