Telegram bot that saves links to Linkding with AI-generated tags and notes.
136
A lightweight, zero-dependency Telegram bot that saves links to your Linkding instance with AI-generated tags and notes.
The bot automatically fetches website content as clean Markdown and uses your preferred LLM to intelligently tag and summarize your bookmarks.
golang, tutorials) to append them to the bookmark.Before installing, make sure you have the following ready:
You can run the bot either using Docker (recommended) or locally from source.
The easiest and most reliable way to run the bot is using Docker Compose.
docker-compose.yml file:services:
bot:
image: mesamirh/linkding-bot:latest
container_name: linkding-bot
restart: unless-stopped
env_file:
- .env
.env file next to it (see Configuration below for details):TELEGRAM_TOKEN=your_telegram_bot_token
LINKDING_URL=https://linkding.yourdomain.com
LINKDING_TOKEN=your_linkding_api_token
LLM_API_KEY=your_llm_api_key
LLM_BASE_URL=https://api.openai.com/v1
LLM_MODEL=gpt-4o
TAG_LIMIT=5
ALLOWED_CHAT_IDS=123456789,987654321
docker-compose up -d
If you prefer to run it manually or for development purposes:
git clone https://github.com/mesamirh/linkding-bot.git
cd linkding-bot
.env.example to .env and fill it out):cp .env.example .env
# Edit .env with your favorite editor
set -a; source .env; set +a;
go run ./cmd/bot
The bot uses the following environment variables. All are required unless specified otherwise.
| Variable | Description | Default |
|---|---|---|
TELEGRAM_TOKEN | Your Telegram bot token from BotFather | Required |
LINKDING_URL | The full URL to your Linkding instance | Required |
LINKDING_TOKEN | Your Linkding API token | Required |
LLM_API_KEY | API key for your chosen LLM provider | Required |
LLM_BASE_URL | Base URL for the OpenAI-compatible API | Required |
LLM_MODEL | The specific model to use for tagging (e.g., gpt-4o) | gpt-4o |
TAG_LIMIT | Maximum number of tags the AI should generate | 5 |
ALLOWED_CHAT_IDS | Comma-separated list of Telegram Chat IDs allowed to use the bot | Required |
/start.Content type
Image
Digest
sha256:a1bfcf3dc…
Size
8.2 MB
Last updated
about 1 month ago
docker pull mesamirh/linkding-bot