Skip to content

A simple bot that will detect and clean tracking links from messages

License

Notifications You must be signed in to change notification settings

Icecovery/AntiTrackingBot

Repository files navigation

Anti-Tracking Bot

GitHub Actions Workflow Status GitHub License

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.

Example Configuration

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
	}
}

Attribution

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)

About

A simple bot that will detect and clean tracking links from messages

Resources

License

Stars

Watchers

Forks

Languages