A simple bot that will detect and clean tracking links from messages.
Currently, the bot is implemented for Telegram, but it can be easily adapted to other platforms.
Create a file named config.jsonc
in the same directory as the bot executable:
{
"CoreConfig":
{
"Filters": [
"https://raw.githubusercontent.com/AdguardTeam/AdguardFilters/master/TrackParamFilter/sections/specific.txt",
"https://raw.githubusercontent.com/AdguardTeam/AdguardFilters/master/TrackParamFilter/sections/general_url.txt"
],
"TemporaryPath": "tmp/"
},
"BotConfig":
{
"TelegramKey": "YOUR_TELEGRAM_BOT_TOKEN", // Get it from @BotFather
"BotName": "YOUR_TELEGRAM_BOT_NAME", // Without @
"UpdatePeriodHours": 6, // How often to check for updates
"ProjectLinkUrl": "https://github.com/Icecovery/AntiTrackingBot" // The link to the project
}
}
Without the work of the Adguard team, this bot would not be possible: Adguard Filters
URL Detector by eladaus (Apache License 2.0)
Telegram.Bot by TelegramBots (MIT License)