Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,17 @@ Full proxy management from your phone. Setup takes 60 seconds:
mtproxymax telegram setup
```

The bot registers its commands with Telegram, so tapping the **`/` menu button** in
the chat lists everything you are allowed to run โ€” no need to memorise them. The
menu is scoped to your role: everyone sees the public self-service commands, admins
see the Admin Control Plane, and superadmins additionally see `/mp_remove`,
`/mp_restart`, `/mp_update` and `/mp_lockdown`. The list is re-synced whenever the
bot service starts; to refresh it by hand use:

```bash
mtproxymax telegram sync-commands
```

| Command | Description |
|---------|-------------|
| `/mp_status` | Proxy status, uptime, connections |
Expand All @@ -443,6 +454,32 @@ mtproxymax telegram setup
| `/mp_update` | Check for updates |
| `/mp_help` | Show all commands |

#### ๐ŸŽ› Running the proxy from buttons

Every command above also exists as a button, so day-to-day management needs no
typing. Send any command โ€” or tap **๐Ÿ  Menu** on any reply โ€” to open the hub:

| Section | What it covers |
|---------|----------------|
| ๐Ÿ‘ฅ **Users** | Paginated list โ†’ per-user card with live connections, traffic, quota bar, expiry, note and quota-reset day, plus link/QR, enable, disable, rotate and remove |
| โš™๏ธ **Manage** (per user) | Quota, connection cap, IP cap, expiry, monthly quota-reset day, note, ad-tag, and applying a saved limit template to that user |
| ๐Ÿงฉ **Templates** | Create, edit every field of, apply and delete limit templates |
| ๐Ÿ“ˆ **Traffic** | Windowed totals (24h / 7d / 30d) with a sparkline, peak and average rate, and top talkers |
| ๐Ÿ–ฅ **Server** | Engine health, posture digest, upstreams, fleet, vouchers, updates |
| ๐Ÿ›  **Tools** | Add user, broadcast, rotate-all, lockdown, restart, apply update |
| โš™๏ธ **Settings** | Port, domain, metrics port, report interval |

Limits are edited with preset buttons for the common values, plus a **โœ๏ธ Customโ€ฆ**
prompt for anything else. Anything that affects live users โ€” removing, rotating,
disabling, restarting, locking down โ€” asks for confirmation first, and the
confirmation is the only path that performs the write.

**Typed input.** Adding a user, setting a custom limit, saving a template name,
broadcasting and writing a note all need text, which buttons cannot supply. Tapping
one of those sends a prompt; your next message is taken as the answer. The prompt is
always escapable: sending any `/command` cancels it, and so does the **โŒ Cancel**
button. An unanswered prompt expires after five minutes.

**Automatic alerts & announcements:**
- ๐Ÿšจ Emergency Lockdown activated โ†’ immediate posture alert
- ๐Ÿ“ข System Broadcasts (`mtproxymax broadcast <msg>`) sent directly to admin chat
Expand Down Expand Up @@ -1503,6 +1540,7 @@ mtproxymax update # Check for script + engine updates
- **Automated SSL Shield (`ssl-shield`):** Zero-touch Let's Encrypt / `openssl` certificate issuance and ACME domain management.
- **Automated Cloud Backups (`backup-cloud`):** Automatic tarball offloading to Telegram admin chat (`sendDocument`) or multi-cloud storage (`rclone`/S3/R2).
- **Dual-Tier Telegram Bot (`telegram`):** Public self-service tier (`/start`, `/my_status <label>`, `/voucher`) combined with an authenticated Admin Control Plane (`/mp_fleet`, `/mp_secrets`, `/mp_lockdown`).
- **Telegram Command Menu:** The bot registers its commands via `setMyCommands`, so the in-app `/` menu button lists every command you can run. Scopes mirror the role model โ€” public commands for everyone, the Admin Control Plane for admins, and the superadmin-only commands (`/mp_remove`, `/mp_restart`, `/mp_update`, `/mp_lockdown`) only for superadmins. Re-synced on every bot service start and on `mtproxymax telegram sync-commands`.
- **Comprehensive Hardening & Audit:** Fixed race conditions (`flock`), prevented configuration code injection (`grep | cut`), added comma/pipe CSV import normalization (`secret_import`), and ensured strict-mode container fallbacks across 18,369 lines (`100% clean`).

### v1.3.1 โ€” Performance & Anti-DPI Upgrade Suite
Expand Down
Loading