DEV Community

Cover image for I Built a Telegram Content Copier (So I Can Stop Copy-Pasting Like It’s 2012)
Mehmet Bulat
Mehmet Bulat

Posted on

I Built a Telegram Content Copier (So I Can Stop Copy-Pasting Like It’s 2012)

Ever found yourself doing the legendary workflow?

1) Open Telegram

2) Copy a post

3) Paste it somewhere else

4) Repeat until your soul times out

Yeah… same.

So I made a tiny Python script that does the boring part for me: it watches a list of Telegram channels and reposts new content to your target channel/group — automatically.

What it does (the “why am I like this?” checklist)

  • Pulls text, photos, and videos from the channels you specify
  • Sends them to a target Telegram group/channel
  • Keeps track of what was already sent to avoid duplicates
  • Can refresh the channel list from a remote JSON file (so you can update sources without redeploying)

Repo: https://github.com/mebularts/Copy-Telegram-Content

Good use cases

  • Mirroring your own channels to another channel/group
  • Building a small “newsroom feed” for your community (with permission)
  • Migrating content you own to a new place
  • Keeping your team/group updated without manual reposting

Quick start

1) Install

git clone https://github.com/mebularts/Copy-Telegram-Content.git
cd Copy-Telegram-Content
pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode

2) Configure

  • Set your TELEGRAM_BOT_TOKEN
  • Set your target TELEGRAM_GROUP/CHANNEL_ID (e.g. @your_channel_or_group)
  • Create a JSON file with the channels you want to watch (kanallar.json) Example:
{
  "TechNews": "https://t.me/s/TechNewsUsername",
  "Updates": "https://t.me/s/UpdatesUsername"
}
Enter fullscreen mode Exit fullscreen mode

Then point json_url in the script to where that JSON lives (remote URL or local path).

3) Run

python main.py
Enter fullscreen mode Exit fullscreen mode

Notes (aka “please don’t make me regret automation”)

  • Use this responsibly: copy only content you own or have permission to republish.
  • Respect creators, copyrights, and Telegram’s rules.
  • If you plan to run it long-term, consider adding rate limits and basic monitoring.

Feedback welcome

If you try it and it saves you from copy-paste purgatory:

  • Star the repo
  • Open an issue with suggestions/bugs
  • PRs are welcome

Happy automating!
— Mehmet (mebularts)

Top comments (0)