WireGuard Bot: Issue VPN Configs to Your Team from Telegram. Code + Guide
Sold <10
0 000 X
There are no such quantities in stock
By clicking the button, you agree to
terms for buyers
Secure deal
Instant delivery
Product description
Handing out VPN keys manually means copying configs into chats, remembering who got what, and having no way to revoke access when someone leaves. This bot does it all: the admin sets up their own WireGuard on a VPS once, and then every team member gets a personal config right in Telegram — as a .conf file and a QR code for their phone.
Everyone gets their own key and address (10.8.0.2, 10.8.0.3 …). A lost phone or a departed employee is one /revoke command, and the config stops working. Configs are only issued to people on the whitelist — a random stranger gets nothing from the bot.
WHAT´S INSIDE THE ARCHIVE
• bot.py — Telegram bot on aiogram 3: /start, /get, /add, /revoke
• wgcore.py — key generation (X25519), configs, QR codes, peer accounting in SQLite
• gen_peer.py — config and QR generation without Telegram (for tests and manual issue)
• test_bot.py — 19 automated tests of the logic and handlers on mocks
• wg-server.example.conf — example server config
• requirements.txt, .env.example, run.sh — one-command launch
• README.md and PDF — full guide: server, bot, whitelist, revocation, QR
GUIDE STEPS
1. WireGuard server on a VPS (or an existing one — see product #12).
2. Bot via @BotFather, token and your ID in .env.
3. Whitelist: /add <telegram_id> <name>.
4. The team sends /get and receives their .conf and QR code.
5. Revocation: /revoke <name> + wg syncconf on the server.
WHAT YOU NEED
A VPS on Ubuntu 22.04/24.04 or Debian 12, a Telegram bot token. 15 minutes to set up + WireGuard installation.
HONEST LIMIT
The bot issues configs and tracks peers, but it does not touch the live server: [Peer] blocks for wg0.conf are updated in the server-peers.conf file, the admin copies them to the server and runs wg syncconf — this is described in the guide. A repeated /get returns the same config, not a new key.
IMPORTANT
These are files and a guide for self-setup — not a turnkey setup. Turnkey installation and setup is a separate service.
SIMILAR PRODUCTS
• Your Own WireGuard VPN on a VPS in 15 Minutes: /itm/your-own-wireguard-vpn-on-a-vps-in-15-minutes-install-client-scripts-guide/6410603
• VPS Starter Kit — Setup and Protection of Ubuntu/Debian Server: /itm/vps-starter-kit-ubuntu-debian-protection-ssh-firewall-backups-scripts-guide/6397857
• SSH Hardening on VPS: Keys, Fail2ban, No Passwords: /itm/ssh-hardening-on-vps-keys-fail2ban-no-passwords-script-guide/6423692
• Telegram Bot on VPS with systemd — Autostart and Logs: /itm/telegram-bot-on-vps-with-systemd-autostart-restart-logs-templates-guide/6410458
• Telegram Lead Bot on aiogram 3 — Business Card with Request Form: /itm/telegram-lead-bot-on-aiogram-3-business-card-request-form-code-guide/6423255
• Telegram Cafe Bot — Menu, Cart and Orders on aiogram 3: /itm/telegram-cafe-bot-menu-cart-and-orders-on-aiogram-3-code-guide/6423674
Everyone gets their own key and address (10.8.0.2, 10.8.0.3 …). A lost phone or a departed employee is one /revoke command, and the config stops working. Configs are only issued to people on the whitelist — a random stranger gets nothing from the bot.
WHAT´S INSIDE THE ARCHIVE
• bot.py — Telegram bot on aiogram 3: /start, /get, /add, /revoke
• wgcore.py — key generation (X25519), configs, QR codes, peer accounting in SQLite
• gen_peer.py — config and QR generation without Telegram (for tests and manual issue)
• test_bot.py — 19 automated tests of the logic and handlers on mocks
• wg-server.example.conf — example server config
• requirements.txt, .env.example, run.sh — one-command launch
• README.md and PDF — full guide: server, bot, whitelist, revocation, QR
GUIDE STEPS
1. WireGuard server on a VPS (or an existing one — see product #12).
2. Bot via @BotFather, token and your ID in .env.
3. Whitelist: /add <telegram_id> <name>.
4. The team sends /get and receives their .conf and QR code.
5. Revocation: /revoke <name> + wg syncconf on the server.
WHAT YOU NEED
A VPS on Ubuntu 22.04/24.04 or Debian 12, a Telegram bot token. 15 minutes to set up + WireGuard installation.
HONEST LIMIT
The bot issues configs and tracks peers, but it does not touch the live server: [Peer] blocks for wg0.conf are updated in the server-peers.conf file, the admin copies them to the server and runs wg syncconf — this is described in the guide. A repeated /get returns the same config, not a new key.
IMPORTANT
These are files and a guide for self-setup — not a turnkey setup. Turnkey installation and setup is a separate service.
SIMILAR PRODUCTS
• Your Own WireGuard VPN on a VPS in 15 Minutes: /itm/your-own-wireguard-vpn-on-a-vps-in-15-minutes-install-client-scripts-guide/6410603
• VPS Starter Kit — Setup and Protection of Ubuntu/Debian Server: /itm/vps-starter-kit-ubuntu-debian-protection-ssh-firewall-backups-scripts-guide/6397857
• SSH Hardening on VPS: Keys, Fail2ban, No Passwords: /itm/ssh-hardening-on-vps-keys-fail2ban-no-passwords-script-guide/6423692
• Telegram Bot on VPS with systemd — Autostart and Logs: /itm/telegram-bot-on-vps-with-systemd-autostart-restart-logs-templates-guide/6410458
• Telegram Lead Bot on aiogram 3 — Business Card with Request Form: /itm/telegram-lead-bot-on-aiogram-3-business-card-request-form-code-guide/6423255
• Telegram Cafe Bot — Menu, Cart and Orders on aiogram 3: /itm/telegram-cafe-bot-menu-cart-and-orders-on-aiogram-3-code-guide/6423674
Main features
- Content type File
- Content description 65,54 kB
- Updated on the site 20.11.2026
Images
Reviews
No reviews yet
0 000 X
There are no such quantities in stock
By clicking the button, you agree to
terms for buyers
Secure deal
Instant delivery
You viewed
All images, logos, and names of games, programs, and other products used are taken from public sources and are for informational purposes only. All trademarks, logos, names, and other intellectual property belong to their respective owners. Use of such images on the website does not imply any affiliation or connection with the copyright holders.