donaldzou / WGDashboard

Simple dashboard for WireGuard VPN written in Python & Vue.js
https://donaldzou.github.io/WGDashboard-Documentation/
Apache License 2.0
1.63k stars 248 forks source link

Proposal for Managing Config and Monitoring System via Telegram Bot API #463

Open mizoil opened 1 week ago

mizoil commented 1 week ago

Hi, great that the update is out! My dream is to manage the config through Telegram Bot API using a token, so that it's convenient. I would also like to get information about the processor status, RAM, and other system parameters. When logging into the panel, I would like to see notifications and the IP address, and also manage access according to the admin's ID, for example, through the profile @useridinfobot. =)

donaldzou commented 1 week ago

Hi @mizoil, interesting idea! Do you mind to provide some information about the @useridinfobot as I don't use Telegram...

and will add the system status to the roadmap in the next release ;)

mizoil commented 1 week ago

Hi @mizoil, interesting idea! Do you mind to provide some information about the @useridinfobot as I don't use Telegram...

and will add the system status to the roadmap in the next release ;)

Hi! Thanks for your interest in my idea. I understand that you don't use Telegram. The idea of using the Telegram Bot API was suggested as a way to easily manage configurations and retrieve system information via a bot. It's just one option, and if Telegram doesn't work for you, here's how it could be organized:

First, a Telegram bot needs to be created with the following functions:

  1. Welcome and Main Menu:

/start 👋 Hello, [Name] 🤖 Welcome to the control panel bot [link to panel]


👇 Please choose:


  1. Server Usage Menu:

đŸ’ģ Hostname: [NAME] 🚀 WGDashboard Version: v4.1.0 🌐 IPv4: IP 🌐 IPv6: IP âŗ Server Uptime: 0 Days 📈 Server Load: 0.00, 0.00, 0.00 📋 RAM: 275.68MB/957.43MB 🌐 Clients Online: 0 🔹 Number of TCP connections: 0 🔸 Number of UDP connections: 0 đŸšĻ Traffic: 0GB (↑0GB,↓0GB) ℹī¸ WGDashboard Status: Connected/Disconnected


  1. Client Management Menu:

🚨 Enabled: ✅ Yes 🌐 Connection Status: 🔴 Offline or đŸŸĸ Online 💡 Active: ✅ Yes 📅 Expiration Date: đŸ”ŧ Outgoing Traffic: ↑ 0 MB/0 GB đŸ”Ŋ Incoming Traffic: ↓ 0 MB/0 GB 📊 Total: ↑↓ 0 MB/0 GB


  1. Additional Actions:
  1. Login Notifications:

✅ Successful login to the panel. đŸ’ģ Hostname: [Name] 👤 Username: [Name] 🌐 IP: [USER IP] ⏰ Time: [DATE TIME]


  1. Multi-language Support:

P.S. This functionality is inspired by the 3x-ui Telegram bot, offering similar features.