A Telegram bot that saves links directly to your Linkding bookmark manager.
- Send any URL to save it as a bookmark
- Add tags using #hashtags
- Include notes with your bookmarks
- Search your bookmarks directly from Telegram
- View recent bookmarks
- Auto-detects duplicate URLs and updates them
- Optional user restrictions
- A running Linkding instance
- A Telegram bot token (get one from @BotFather)
- Bun runtime (only for local development) or Docker
Docker images are published to Docker Hub and GitHub Packages.
-
Clone this repository:
git clone https://github.com/lmmendes/linkdinger.git cd linkdinger -
Create a
.envfile with your configuration:LINKDING_TELEGRAM_BOT_TOKEN=your_telegram_bot_token LINKDING_URL=https://linkding.example.com LINKDING_API_TOKEN=your_linkding_api_token LINKDING_ALLOWED_USERS= # Optional: comma-separated Telegram user IDs -
Start the bot:
docker compose up -d
docker build -t linkdinger .
docker run -d \
--name linkdinger \
--restart unless-stopped \
-e LINKDING_TELEGRAM_BOT_TOKEN=your_token \
-e LINKDING_URL=https://linkding.example.com \
-e LINKDING_API_TOKEN=your_linkding_token \
linkdinger-
Install dependencies:
bun install
-
Set environment variables:
export LINKDING_TELEGRAM_BOT_TOKEN=your_telegram_bot_token export LINKDING_URL=https://linkding.example.com export LINKDING_API_TOKEN=your_linkding_api_token
-
Run the bot:
bun run dev
| Variable | Required | Description |
|---|---|---|
LINKDING_TELEGRAM_BOT_TOKEN |
✅ | Your Telegram bot token from @BotFather |
LINKDING_URL |
✅ | URL of your Linkding instance (e.g., https://linkding.example.com) |
LINKDING_API_TOKEN |
✅ | API token from Linkding (Settings → Integrations) |
LINKDING_ALLOWED_USERS |
❌ | Comma-separated list of Telegram user IDs allowed to use the bot. Leave empty to allow everyone. |
| Command | Description |
|---|---|
/start |
Show welcome message and quick guide |
/help |
Show detailed help |
/recent |
Display 5 most recent bookmarks |
/search <query> |
Search your bookmarks |
/tags |
List all your tags |
/status |
Check connection to Linkding |
https://example.com
https://example.com #tech #reading
https://bun.com Great article about Bun! #programming #tutorial #bun
- Open your Linkding instance
- Go to Settings → Integrations
- Copy the REST API token
To restrict the bot to specific users, you need their Telegram user IDs:
- Start a chat with @userinfobot
- It will reply with your user ID
- Add this ID to the
ALLOWED_USERSenvironment variable
MIT