UnshortyBot is a Telegram bot that unshortens shortened URLs and removes tracking data.
- Unshortens shortened URLs and provides the original long URL.
- Removes tracking parameters from the unshortened URL.
- Works with popular URL shortening services.
- Provides a simple and convenient way to unshorten URLs directly in Telegram.
- Start a chat with the UnshortyBot Bot on Telegram.
- Send a message containing a shortened URL to the bot.
- The bot will reply with the unshortened URL and any tracking parameters removed.
-
Clone this repository or download the source code.
-
Install the required dependencies using
pip install -r requirements.txt
. -
Obtain a bot token from the BotFather on Telegram.
-
Set the bot token in a
config.yaml
orconfig.yml
file in the following format:telegram_bot_token: YOUR_BOT_TOKEN
Alternatively, you can set the TELEGRAM_BOT_TOKEN environment variable.
Run the bot using python main.py
.
-
Clone this repository or download the source code.
-
Make sure you have Docker installed on your system. If not, you can download and install Docker from the official Docker website.
-
Navigate to the project directory.
-
Set your Telegram bot token in .env file
-
Build and start the Docker containers using the following command:
docker-compose up -d
This will build the Docker image and start the container in detached mode.
-
Verify that the bot is running by sending a message to the UnshortyBot Bot on Telegram.
Also you can use prebuilt image:
---
services:
app:
image: nett00n/unshortybot
environment:
TELEGRAM_BOT_TOKEN: $TELEGRAM_BOT_TOKEN
version: "3"
Set your Telegram bot token in .env file or replace in in docker-compose.yaml
file.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request. License
All code in this repository is licensed under the terms of the MIT License. For further information please refer to the LICENSE file.
- Vladimir Budylnikov aka @nett00n
2023, Tbilisi, Sakartvelo