This commit is contained in:
@@ -114,6 +114,24 @@ All settings use `AMNEZIA_FELLOW_` prefix. Priority is:
|
||||
| `AMNEZIA_FELLOW_VPN_DNS` | DNS servers in generated configs | `1.1.1.1, 8.8.8.8` |
|
||||
| `AMNEZIA_FELLOW_VPN_MTU` | MTU in generated configs | `1376` |
|
||||
| `AMNEZIA_FELLOW_SWAGGER_ENABLED` | Serve Swagger UI at `/swagger/` | `false` |
|
||||
| `AMNEZIA_FELLOW_TELEGRAM_BOT_ENABLED` | Enable Telegram bot/Web App integration | `false` |
|
||||
| `AMNEZIA_FELLOW_TELEGRAM_BOT_USERNAME` | Telegram bot username, with or without `@` | empty |
|
||||
| `AMNEZIA_FELLOW_TELEGRAM_BOT_TOKEN` | Telegram bot token used to verify Web App `initData` | empty |
|
||||
|
||||
## Telegram Bot
|
||||
|
||||
Configure the bot through the admin Settings page or the matching environment variables:
|
||||
|
||||
```bash
|
||||
AMNEZIA_FELLOW_TELEGRAM_BOT_ENABLED=true
|
||||
AMNEZIA_FELLOW_TELEGRAM_BOT_USERNAME=<BOT_USERNAME>
|
||||
AMNEZIA_FELLOW_TELEGRAM_BOT_TOKEN=<BOT_TOKEN>
|
||||
```
|
||||
|
||||
In BotFather, create or reuse the same bot and set its Web App URL to
|
||||
`https://<APP_HOST>/configs`. The bot should reply with the sender's numeric
|
||||
Telegram ID, and users must open the bot and send `/start` once before
|
||||
notifications can be delivered.
|
||||
|
||||
## API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user