Viewing the user list
Navigate to Users (/users) to see every Telegram account that has interacted with your bot. The table shows the following columns for each account:
| Column | Description |
|---|---|
| User | Display name and avatar initial |
| Handle | Telegram username (e.g. @alice), if set |
| Status | active (used the bot recently) or idle |
| Records | Total number of financial records the user has created |
| Joined | Date the account was first registered |
| Telegram ID | The numeric Telegram user ID |
Access control modes
SAFIA supports two access modes, configurable from the Settings page (/settings):
All Users
Any Telegram user who messages your bot can interact with it. This is the default mode — suitable for personal use or small, trusted groups.
Allowlist Only
Only Telegram user IDs explicitly added to the allowlist can use the bot. All other users receive a rejection message that includes their numeric Telegram ID.
Switching access modes
Managing the allowlist
Adding a user
Find the Telegram ID
Ask the person to open Telegram and send
/start to @userinfobot. The bot replies instantly with their numeric Telegram ID (for example, 123456789). Alternatively, if they already tried to message your SAFIA bot while it is in allowlist mode, the rejection message includes their ID.Removing a user
On the Settings page, find the ID in the Allowed Telegram IDs list and click Remove next to it. The user loses access immediately — no restart required.The allowlist only takes effect when the access mode is set to Allowlist only. If you are in All users mode, the allowlist is stored but not enforced.
Editing configuration values
The Settings page also contains a full.env editor, organized into collapsible sections:
Available configuration sections
Available configuration sections
| Section | Example variables |
|---|---|
| Bot | TELEGRAM_BOT_TOKEN |
| AI & Voice | LLM_PROVIDER, LLM_API_KEY, LLM_MODEL, GROQ_API_KEY |
| Search & Data | FIRECRAWL_API_KEY, COINGECKO_API_KEY |
| Storage | DATABASE_URL, REDIS_URL |
| Vector & Embeddings | QDRANT_PATH, EMBEDDING_LOCAL, EMBEDDING_LOCAL_MODEL |
| Knowledge Base | KB_CHUNK_WORDS, KB_MAX_UPLOAD_MB |
| Reminders | REMINDER_ENABLED, REMINDER_MAX_PER_USER |
| Admin | ADMIN_USERNAME, ADMIN_PASSWORD, FLASK_SECRET_KEY |
Click Edit
Click the Edit button next to the variable you want to change. An input field appears inline.
Enter the new value
Type the new value and click Save. The
.env file is updated on disk immediately, preserving all comments and other entries.