allow user to be added via id

This commit is contained in:
2026-05-11 11:34:38 +01:00
parent 5b434abd06
commit 7a2db35495
8 changed files with 170 additions and 9 deletions

View File

@@ -45,6 +45,7 @@ POCKETBASE_ADMIN_PASSWORD=secret
- Notes:
- `ALLOWED_USERS` should be a comma-separated list of Telegram user IDs (no brackets).
- `ALLOWED_USERS` acts as the bootstrap allowlist; the bot also checks the PocketBase `Telegram` collection for persisted access.
- The bot reads `TG_TOKEN` and `ALLOWED_USERS` from the environment.
6. Ollama (local LLM) setup
@@ -99,6 +100,7 @@ python main.py
```
The bot listens for commands:
- `/add <id>` — grant a Telegram user ID access through the `Telegram` collection
- `/op <url or paste>` — parse an opportunity
- `/ev <url or paste>` — parse an event
- If you send a URL directly in chat, the bot will ask whether to process it as an event or an opportunity using buttons.