Link Keeper Bot is a Telegram bot designed to save links or memo files in Cubox. It processes different types of messages including URLs and forwarded messages.
- Save URLs and text memos.
- Process forwarded messages from Telegram.
- Restrict access to specified 'Super Users'.
- Integrate with an external link storage service (Cubox).
- Docker and Docker Compose
- Telegram Bot API token
- Access to a Cubox instance or similar service for link storage
- Clone the repository:
git clone git@github.com:pkarpovich/tg-link-keeper-bot.git
- Navigate to the project directory:
cd tg-link-keeper-bot
- Create a .env file in the project root with the following contents:
TELEGRAM_TOKEN=your_telegram_bot_token
TELEGRAM_SUPER_USERS=user_id1,user_id2
LINK_STORE_URL=your_link_store_endpoint
- Adjust the values for
TELEGRAM_TOKEN
,TELEGRAM_SUPER_USERS
, andLINK_STORE_URL
according to your setup.
- Use the provided Docker Compose file to deploy the bot:
docker compose pull
docker compose up -d
- The bot will be running in a container named tg-link-keeper-bot.
- Send a URL or a forwarded message to the bot to save it in Cubox.
- Send a text message to the bot to save it as a memo in Cubox.
- Interact with the bot in Telegram. Use the /ping command to check its status.
/ping
- Check if the bot is online.