mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-10-18 05:10:46 +00:00
13 lines
583 B
Markdown
13 lines
583 B
Markdown
## Usage
|
|
|
|
Zip the contents of the `notes` directory into a .zip file and import it into Trilium Notes (right-click into the tree sidebar -> Import).
|
|
|
|
Acquire a bot token from Telegram and save it in the environment variable `TELEGRAM_BOT_TOKEN`.
|
|
Set `TRILIUM_HOST` to `http://IP:port` (or `https://domain:port`) of your sync server.
|
|
Set `TRILIUM_USER` and `TRILIUM_PASSWORD`.
|
|
Set `TELEGRAM_USER_ID` to your own Telegram User ID.
|
|
|
|
Then simply run the program: `cargo run --release`.
|
|
|
|
Note: the bot is not using the new [ETAPI](https://github.com/zadam/trilium/wiki/ETAPI) (yet)
|