The GuardianVPN Telegram Bot allows users to connect to OpenVPN and WireGuard servers, generate configuration files, and purchase VPN access passes for a selected duration using their preferred payment method.
• Generate VPN configuration files with ease via Telegram Bot
• Connect to OpenVPN and WireGuard servers
• Payment options to purchase VPN access passes for a selected duration
• Additional command handlers to provide information about the VPN service
- Create a new Telegram bot using BotFather:
• Open Telegram and search for BotFather
• Type/start
to start the conversation with BotFather
• Type/newbot
and follow the instructions to create a new bot
• BotFather will provide you with aTELEGRAM_API_TOKEN
. Save it for later use - Clone this repository and navigate to the project directory
- Install the required dependencies using
pip install -r requirements.txt
- Create a
config.py
file and set the necessary environment variables (TELEGRAM_API_TOKEN
) - Run
python bot.py
script - Start the bot in Telegram by searching for the bot name and clicking on the
start
button
Note: By default, this project uses PiVPN to configure a VPN server, however, you can modify the code to add your own desired options.
The Payment options feature enables users to purchase VPN access passes for a selected duration using their preferred payment method. The configuration file will be generated after payment. Please note that to enable payments in your bot, you will need to set up a payment provider and obtain a payment provider token. Telegram's BotFather provides instructions for setting up payments in your bot.
Once the bot is running, users can interact with it by sending commands via Telegram. The available commands are:
• /about
: Get information about the bot and its features
• /generate_config
: Generate a new configuration file
• /getapp
: Get a download link for both OpenVPN and Wireguard apps
• /limitations
: Learn about bot's limitations
• /privacy
: View privacy policy
• /start
: Start the bot and get a welcome message
• /status
: Check the status of VPN server
• /support
: Contact us
• /terms
: Read our terms and conditions
• /tutorial
: Instructions on how to use a VPN configuration files
• /whatsnew
: Latest updates and improvements
Here are some ideas for potential future developments to this project:
• Add support for the Wireguard VPN protocol (In progress)
• Allow users to choose a specific country for their VPN connection
Contributions to this project are welcome. If you find a bug or have a feature request, please open an issue on the GitHub repository. If you'd like to contribute code, please fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE.md file for details.