A Telegram bot that automatically replaces links in messages. Works both in group chats (replying to messages) and via inline queries.
.env.example includes a sample configuration that replaces social media links with embed-friendly alternatives.
Environment variables:
API_TOKEN— Telegram bot API token (required)LINK_RULES— a JSON object mapping original domains to replacement domains (required)
To start in development mode with file watching:
deno task devTo start in production mode:
deno task startTo compile the executable:
deno task compile