2021-04-23 08:56:44 +00:00
|
|
|
## 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`.
|
2021-09-29 07:29:52 +00:00
|
|
|
Set `TRILIUM_HOST` to `http://IP:port` (or `https://domain:port`) of your sync server.
|
2021-04-23 08:56:44 +00:00
|
|
|
Set `TRILIUM_USER` and `TRILIUM_PASSWORD`.
|
|
|
|
Set `TELEGRAM_USER_ID` to your own Telegram User ID.
|
|
|
|
|
|
|
|
Then simply run the program: `cargo run --release`.
|
2022-07-26 14:24:48 +00:00
|
|
|
|
|
|
|
Note: the bot is not using the new [ETAPI](https://github.com/zadam/trilium/wiki/ETAPI) (yet)
|