feat: openai proxying

This commit is contained in:
2026-07-15 14:23:05 +07:00
parent 3d171206ca
commit 4e6af66362
4 changed files with 7 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ Minimal aiogram bot that forwards whitelisted Telegram users' text messages to a
## Features
- Configurable `API_BASE_URL` and `API_TOKEN`
- Optional proxy for aiogram Telegram API connections
- Optional proxy for Telegram API and OpenAI-compatible API connections
- Telegram typing animation while the model response is streaming
- Required users whitelist
- Persistent per-user context in SQLite
@@ -61,7 +61,7 @@ python bot.py
## Proxy
Set `TELEGRAM_PROXY` in `.env` to route aiogram traffic through a proxy:
Set `TELEGRAM_PROXY` in `.env` to route both Telegram API and OpenAI-compatible API traffic through a proxy:
```dotenv
TELEGRAM_PROXY=socks5://user:pass@127.0.0.1:1080