skoret/wireguard-telegram-bot — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Telegram bot for my Wireguard VPN. I want people to message the bot and get a ready to use client config file plus a QR code they can scan in the Wireguard app. It should support a small command menu with /menu, /help, /newkeys to generate a fresh key pair and config, and /pubkey to make a config template from a public key the user sends.
Please make it easy to self host on a server. It should read settings from an env file for the Telegram token, allowed admin usernames, DNS servers, server endpoint, Wireguard interface name, and templates folder. If the admin list is empty, the bot can be public. If names are set, only those users should be allowed in. A simple dev mode for testing without touching a real Wireguard setup would be great too.
Keep the setup straightforward and include clear run instructions. You can look up current docs online if needed.
Want more depth? Deep Reverse