A powerful Telegram bot for seamless interaction with Trilium Notes, combining features from TGTriliumBot and trilium-bot.
- 📝 Note Creation - Create new notes directly from Telegram
- 📎 Attachment Upload - Easily upload files to your Trilium notes
- ✅ TODO Management - View, check, add, update, and delete TODO items
- 🔄 Automated Tasks - Move yesterday's unfinished TODOs to today's note
- 🎮 Interactive Interface - Inline buttons for intuitive navigation
- A running Trilium Notes server
- Docker and Docker Compose
- A Telegram bot token (get one from BotFather)
-
Clone the repository:
git clone https://github.com/ktibr0/Trilium_telegram_bot cd Trilium_telegram_bot -
Configure environment variables:
cp example.env .env
Edit
.envwith your details:TELEGRAM_BOT_TOKEN=your_telegram_bot_token TRILIUM_ETAPI_TOKEN=your_trilium_token TRILIUM_API_URL=https://URL_for_Your_Trilium_server admin_list=your_telegram_id -
Build and run the Docker container:
docker compose up --build -d
For detailed logs:
docker compose up --build -d && docker compose logs -f
- Start the bot by sending
/startin your Telegram chat - Use the interactive menu to access various features:
Select "Create Note" and follow the prompts to add a title and content.
First, create a note titled "FromTelegram" in your Trilium. Then select "Create Attachment" in the bot, provide a name, and upload your file.
Note: Attachments remain for 30 days unless converted to notes. Access them by going to the note, clicking the 3 dots menu, and selecting "Note attachments".
Simply send text messages to the bot to save them as subnotes to today's note.
- Select "TODO List" to view today's TODOs
- Tap items to check/uncheck them
- Use the function buttons to add, update, or delete TODOs
The bot automatically moves yesterday's unfinished TODOs to today's note. Customize the schedule in config.json.
Contributions are welcome! Feel free to:
- Open a Pull Request
- Report issues through the Issue tracker
This project builds upon the work done in: