Telegram bot for managing VPN connections to GlebusVPN.
A Rust-based Telegram bot for managing VPN subscriptions via the Remnawave API. The bot allows users to create, view, recreate, and delete their VPN subscriptions directly from Telegram.
- 🚀 Create new VPN subscriptions
- 🔑 View existing subscription links
- 🔄 Regenerate subscription links
- ❌ Delete subscriptions
- ℹ️ View detailed user/profile information
- 📊 Monitor traffic usage
- 📝 Comprehensive error handling
- Rust 1.70+
- Telegram Bot API token
- Remnawave API access credentials
- Environment variables configured (see setup)
git clone https://github.com/LineGM/glebus_vpn_bot.git
cd glebus_vpn_botcargo build --releaseCreate .env file in the project root directory (same level as Cargo.toml) with:
TELOXIDE_TOKEN=your_telegram_bot_token
PANEL_BASE_URL=https://your.panel.url
REMNAWAVE_API_TOKEN=your_remnawave_api_token
When running the compiled binary directly, place .env in the same directory as the executable:
/target/release/
├── glebus_vpn_bot # Binary
└── .env # Environment file
# Cargo
cargo run --release
# Binary directly
cd target/release
./glebus_vpn_bot