Skip to content

tg-channel-sync

Self-hosted Telegram channel forwarder and history migration tool with a web console

Permissive (OSI) · MIT

Listed by , founder & editor

70

Health

Active

Overview

Stars

130

Last commit

2 months ago

Oct 2026

Repository age

8 months

since Mar 2026

Latest version

v0.5.5

Oct 2026

Contributors

–

1 active in 90 days

Releases

13

last 12 months

Language

Python

tg-channel-sync mirrors Telegram channels in real time and copies their history to other channels. It supports many-to-many routing, type and regex filters, link rewriting for messages already synced, and media download and re-upload. History tasks can resume from stored progress, and albums and replies are restored on a best-effort basis.

You can also restore messages from a single-chat Telegram Desktop export, using its result.json and local media. The project notes that JSON import still has known problems, so test it on a few messages first.

The backend is Python, using aiogram, Pyrofork, FastAPI and aiosqlite. You set up Telegram access, mappings and filters, and watch tasks and logs, in a browser interface available in Simplified Chinese and English. Native builds for Windows x64 and Linux x64 run without Python, and Docker Compose is supported. The web console has no built-in authentication, so keep it on localhost or behind a VPN or authenticated proxy. It is MIT licensed.

Who it's for

Channel admins mirroring content across several Telegram channels

Many-to-many routing and filters let you forward selected messages automatically.

Skip if: You only need Telegram's built-in forwarding for a few messages.

Owners migrating a channel's archive to a new channel

API-based history copying resumes from stored progress and rewrites links to synced messages.

Skip if: You need a guaranteed exact copy of every album and reply.

Home server and NAS users

Docker Compose and a browser console make it simple to run unattended.

Skip if: You cannot put it behind a VPN or authenticated proxy for remote access.

The problem it solves

Moving a Telegram channel's history or keeping a mirror in sync is slow by hand. This tool automates forwarding and copying, with filters and resumable tasks.

Strengths

  • Real-time sync plus API-based history copying in one tool
  • Resumable history tasks using stored progress
  • Native Windows x64 and Linux x64 builds, no Python needed
  • Docker Compose deployment for servers and NAS
  • Web UI in Simplified Chinese and English

Trade-offs

  • Web console has no built-in authentication
  • JSON import has known issues and should be tested first
  • Native Linux build needs glibc 2.35 or newer, not Alpine
  • Album and reply restoration is best-effort

Self-host tg-channel-sync

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Quick start

git clone https://github.com/RRHTY/tg-channel-sync.git
cd tg-channel-sync
touch config.json
mkdir -p data temp
docker compose up -d --build

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it free and self-hosted?

Yes. It is MIT licensed and you run it yourself, either as a native build or with Docker Compose.

Which platforms does it run on?

Native builds exist for Windows x64 and Linux x64, and Docker Compose works on other hosts. Linux builds need glibc 2.35 or newer.

Is the web console safe to expose online?

No. It has no built-in authentication and only allows local access by default. Use a VPN or an authenticated reverse proxy for remote use.

Can it import from Telegram Desktop exports?

Yes, it restores messages from a single-chat result.json and local media, though this feature still has known problems.

Similar tools in Integration and messaging platforms

homelabapi

Integration and messaging platforms

Self-hosted API that routes homelab alerts from many services to your chosen notifiers

109 5 12 days ago Active MIT

Fuxedo

Integration and messaging platforms

28 10 today Slowing MIT

Easy NATS

Integration and messaging platforms

30 6 43 days ago Active MIT

nats-server

Integration and messaging platforms

Lightweight messaging server for connecting services, devices and edge systems

21k 2.1k today Thriving Apache-2.0