Quickstart
Get NotebookTG running locally in minutes.
1
Clone and Setup
Get the code and create your environment file
git clone https://github.com/Sardorchikdev/NotebookTG.git
cd NotebookTG
cp .env.example .env2
Configure Environment
Edit .env with your API keys
BOT_TOKEN=your_telegram_bot_token
GROQ_API_KEY=your_groq_api_key
# For local dev, defaults work:
# DATABASE_URL=sqlite+aiosqlite:///./data/notebooktg.db
# VECTOR_BACKEND=memory3
Run the Bot
Start the Telegram bot
python main.py4
Use Commands
Interact with your bot in Telegram
/newnotebook "My Research"
/helpDocker Setup
Run the full stack with PostgreSQL and Qdrant:
cp .env.example .env
docker compose up -d postgres qdrant
make migrate
make bot # or make apiEnvironment Variables
BOT_TOKENTelegram bot tokenGROQ_API_KEYLLM provider API keyDEFAULT_MODELMain chat modelDATABASE_URLSQLAlchemy connectionVECTOR_BACKENDqdrant or memoryQDRANT_URLQdrant server URLNeed Help?
Check the README for full documentation.
