A simple Telegram bot with which your users can generate a new personal key to access your Outline VPN server.
- Generate a new private key
- Get notified when a new key is generated
Set up your Outline VPN server and create a new bot with Bot @BotFather. More information about Outline VPN can be found here. Then write hard-coded (temporary) variables (I'll move them to env files soon):
- TELEGRAM_BOT_TOKEN
- TELEGRAM_BOT_ADMIN_CHAT_ID
- API_PORT
- API_URL Dont forget to set up your bot's webhook. You can use this get request to do so - put your token and URL of deployed function.
- Refactor the code to use env files instead of hard-coded variables.
- Don't use default php CURL
- Rewrite this readme file