Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 716 Bytes

File metadata and controls

37 lines (23 loc) · 716 Bytes

Telegram Link Replacer Bot

A Telegram bot that automatically replaces links in messages. Works both in group chats (replying to messages) and via inline queries.

Prerequisites

Configuration

.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)

Usage

To start in development mode with file watching:

deno task dev

To start in production mode:

deno task start

To compile the executable:

deno task compile