WireGuard Bot: Issue VPN Configs to Your Team from Telegram. Code + Guide

Price in currencies:
14.81 $ · 1050 RUB · 13.49 €
Category:
Others
Item:
wireguard-bot-v1.0.zip (65.54 KB)
Uploaded:
20.11.2026 12:42:00
Sales:
0
Refunds:
0
Seller:
Новинка Супер хит! · about the seller and their products
14.81 $

You will choose the payment method — bank card, cryptocurrency, WebMoney, Alipay, PIX, UPI and others — on the next step. See «Payment methods» for details.

DESCRIPTION

WireGuard Bot: Issue VPN Configs to Your Team from Telegram. Code + Guide

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 .
4. The team sends /get and receives their .conf and QR code.
5. Revocation: /revoke + 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: https://plati.market/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: https://plati.market/itm/vps-starter-kit-ubuntu-debian-protection-ssh-firewall-backups-scripts-guide/6397857
• SSH Hardening on VPS: Keys, Fail2ban, No Passwords: https://plati.market/itm/ssh-hardening-on-vps-keys-fail2ban-no-passwords-script-guide/6423692
• Telegram Bot on VPS with systemd — Autostart and Logs: https://plati.market/itm/telegram-bot-on-vps-with-systemd-autostart-restart-logs-templates-guide/6410458
• Telegram Lead Bot on aiogram 3 — Business Card with Request Form: https://plati.market/itm/telegram-lead-bot-on-aiogram-3-business-card-request-form-code-guide/6423255
• Telegram Cafe Bot — Menu, Cart and Orders on aiogram 3: https://plati.market/itm/telegram-cafe-bot-menu-cart-and-orders-on-aiogram-3-code-guide/6423674

REVIEWS

Reviews: (0)

No customer reviews yet.

More in «Others»

All items in «Others» →