Settings Management¶
Configure tg-note directly from Telegram.
Overview¶
The settings management system allows you to customize bot behavior without editing configuration files. All settings can be changed directly through Telegram commands.
Features¶
- ✅ Interactive UI - Inline keyboards with category navigation
- ✅ Type Safety - Automatic validation and conversion
- ✅ Per-User - Each user has their own settings
- ✅ Auto-Generated - New settings appear automatically
- ✅ Secure - Credentials cannot be changed via Telegram
Quick Start¶
Open Settings Menu¶
View All Settings¶
Change a Setting¶
Use the interactive menu and inline buttons:
Reset to Default¶
Settings Categories¶
📚 Knowledge Base¶
KB_PATH
- Path to knowledge baseKB_GIT_ENABLED
- Enable Git operationsKB_GIT_AUTO_PUSH
- Auto-push changesKB_GIT_REMOTE
- Git remote nameKB_GIT_BRANCH
- Git branch
🤖 Agent¶
AGENT_TYPE
- Agent implementationAGENT_MODEL
- AI model to useAGENT_QWEN_CLI_PATH
- Path to qwen CLI executableAGENT_INSTRUCTION
- Custom instruction for agentAGENT_TIMEOUT
- Operation timeoutAGENT_ENABLE_WEB_SEARCH
- Enable web searchAGENT_ENABLE_GIT
- Enable Git operationsAGENT_ENABLE_GITHUB
- Enable GitHub APIAGENT_ENABLE_SHELL
- Enable shell commands (⚠️ security risk)AGENT_ENABLE_FILE_MANAGEMENT
- Enable file operationsAGENT_ENABLE_FOLDER_MANAGEMENT
- Enable folder operations
⚙️ Processing¶
MESSAGE_GROUP_TIMEOUT
- Message grouping timeoutPROCESSED_LOG_PATH
- Processing log path
📝 Logging¶
LOG_LEVEL
- Logging level (DEBUG, INFO, WARNING, ERROR)LOG_FILE
- Log file path
Interactive Menu¶
The /settings
command provides:
- Category Selection - Browse by category
- Quick Toggles - One-tap for booleans
- Setting Details - View descriptions
- Reset Options - Restore defaults
Examples¶
Change Timeout¶
Open /settings
, navigate to Agent category, select AGENT_TIMEOUT
, and set it to 600
.
Disable Auto-Push¶
Open /settings
, navigate to Knowledge Base category, and toggle KB_GIT_AUTO_PUSH
to off.
Enable Debug Logging¶
Open /settings
, navigate to Logging, select LOG_LEVEL
, and choose DEBUG
.