A Telegram bot that integrates with Linkwarden to save and manage bookmarks directly from Telegram.
- Save links to your Linkwarden collection
- Search your bookmarks
- Manage collections
- Automated link metadata extraction
git clone https://github.com/yourusername/linkwarden-telegram-bot.git
cd linkwarden-telegram-bot
docker build -t linkwarden-telegram-bot .
cp .env.example .env
TELEGRAM_TOKEN=your_bot_token
LINKWARDEN_API_URL=https://your-linkwarden-instance.com/api
LINKWARDEN_API_KEY=your_api_key
LINKWARDEN_COLLECTION_ID=your_collection_id
docker-compose up -d
pip install -r requirements.txt
export TELEGRAM_TOKEN=your_bot_token
export LINKWARDEN_API_URL=https://your-linkwarden-instance.com/api
export LINKWARDEN_API_KEY=your_api_key
export LINKWARDEN_COLLECTION_ID=your_collection_id
python bot.py
To add a link to your Linkwarden collection, simply send a message containing the link to the bot. The bot will automatically extract the link and add it to your specified collection.
- Send a message to the bot with a link:
Check out this cool website: https://example.com
- The bot will respond with a confirmation message:
Links added to Linkwarden:
https://example.com
If the bot encounters an error while adding a link, it will notify you with a message indicating the failed link and the reason for the failure.