(Technical Task) for launching a Telegram bot
🔹 1. Goal
Set up and launch a Telegram bot on a remote server (or cloud platform), ensure its stable round-the-clock operation and auto-start after reboot.
---
🔹 2. Initial Data
Access to the server (via SSH, console, or control panel) will be provided.
The root password or SSH key can be obtained from the client.
The source code of the bot will be provided (archive or link to the repository).
The bot operates through the Telegram Bot API.
The Telegram bot token will be issued separately.
---
🔹 3. Tasks for the Executor
1. Set up the connection to the server
Check SSH access (by password or key).
Set up secure access (SSH keys, password restrictions).
If necessary, update the system (apt update && apt upgrade).
2. Deploy the environment for the bot
Install the required version of Python / Node.js (depending on the project).
Install dependencies (requirements.txt or package.json).
Set up a virtual environment or process manager (pm2/systemd).
3. Start and check the bot's operation
Set up environment variables (token, database parameters, etc.).
Check that the bot connects stably to the Telegram API.
Ensure auto-start on system reboot.
4. (If required) Set up a webhook
Set up and configure a web server (nginx / uvicorn / gunicorn).
Set up an HTTPS certificate (Let’s Encrypt).
Check the correctness of webhook processing.
5. Optimization and Security
Set up basic protection (firewall, fail2ban).
Restrict access to the server.
Set up code or data backup (if necessary).
6. Delivery of Results
A fully operational bot, launched and tested.
Instructions for the owner:
how to restart and update the bot,
where the logs are located,
how to add a new SSH key.
Result
✅ A working Telegram bot, functioning stably 24/7.
✅ The ability to restart and update it independently.
✅ Configured security and auto-start.
✅ A brief instruction on managing the bot.