mirror of
https://github.com/anten-ka/gotelegram_pro.git
synced 2026-05-19 14:36:05 +00:00
Document Telegram bot auto-update flow
This commit is contained in:
@@ -31,6 +31,14 @@ Production-quality Telegram bot for managing MTProxy (telemt engine) on Linux se
|
||||
|
||||
## Installation
|
||||
|
||||
Recommended installation path is the main CLI menu:
|
||||
|
||||
```bash
|
||||
gotelegram
|
||||
```
|
||||
|
||||
Then choose `12) Telegram-bot` → install/update. On repeat goTelegram Pro bootstrap/update, an already installed bot is refreshed automatically: code, i18n files and requirements are copied to `/opt/gotelegram-bot`, `.env` is preserved, dependencies are checked and `gotelegram-bot` is restarted.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- Python 3.8+
|
||||
@@ -73,11 +81,11 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=gotelegram
|
||||
WorkingDirectory=/opt/gotelegram/bot
|
||||
ExecStart=/usr/bin/python3 /opt/gotelegram/bot/bot.py
|
||||
WorkingDirectory=/opt/gotelegram-bot
|
||||
ExecStart=/opt/gotelegram-bot/venv/bin/python /opt/gotelegram-bot/bot.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
RestartSec=5
|
||||
Environment=PATH=/opt/gotelegram-bot/venv/bin:/usr/bin
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -89,6 +97,7 @@ WantedBy=multi-user.target
|
||||
|
||||
- `BOT_TOKEN` - Telegram bot token (required)
|
||||
- `ALLOWED_IDS` - Comma-separated user IDs (optional, all users allowed if empty)
|
||||
- `BOT_LANG` - Default language inherited from goTelegram Pro install language
|
||||
|
||||
### System Paths
|
||||
|
||||
|
||||
Reference in New Issue
Block a user