Skip to main content
100%

Gist 80a7dc5935d9fb21b1c12d26bdc8ef5d

✓ Published0🌍 Public
UUtopiah
Last edited Jan 26, 2022
Created on Jan 25, 2022

This example shows a Telegram bot that lets users send documents, photos, or URLs to a reMarkable tablet, automatically adding them as readable files. The bot uses `node-telegram-bot-api` with polling to listen for commands and messages, while `child_process.execSync` runs shell commands like `wget` to download content and `adddoc` to insert files into the tablet’s storage. It distinguishes between PDF/EPUB links and other URLs, generating a minimal ePub from a template when needed, then restarts the `xochitl` service to refresh the device’s library.

AI-generated description

Similar vizzes