allow user to be added via id
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user