Why I built TgLoader, a Telegram channel downloader

Channels get deleted, and so do the people who run them. If a channel holds a course, a reference archive or years of a group’s history, the only safe copy is the one you make yourself.

Telegram has its own export tool, and it is one option. But I wanted something I could point at several channels, limit by date, and leave running while I got on with other things. So I built TgLoader.

This post is the story behind it: who it is for, what using it is like, and what I learned along the way.

The problem

A lot of useful material lives only inside Telegram channels. Lessons, documents, old announcements, voice notes. It is easy to assume it will always be there. It will not. A channel can vanish overnight, and then there is nothing to go back to.

Saving things by hand, one file at a time, does not scale. Nobody keeps that up for a channel with years of posts. I wanted a tool that does the boring part for me.

What TgLoader does

TgLoader is a desktop app. It downloads photos, videos, audio, voice messages, stickers and documents from Telegram channels that your own account can already open. It can also save the messages themselves as a web page that sits next to the downloaded files.

A few things matter in daily use:

  • Several downloads run at the same time. The default is three.
  • Each channel gets its own folder, and you can set an optional “from” and “to” date for each one.
  • Run it a second time and it only fetches what is new.
  • Files are sorted into folders by type, so videos and pictures do not end up in one pile.
  • Every file has a Skip button, in case one is taking too long.

Who it is for

It is for people who want a personal copy of something they already have access to. Students who want to keep course material. People who follow a reference channel and do not trust it to stay online. Anyone who wants a backup of a group’s history.

It only reaches channels your account can already open. You sign in with your own Telegram details, and you need your own developer credentials from Telegram to do it. The TgLoader page walks through the setup.

What turned out harder than I expected

The download itself was the easy part. The surprises came from everything around it.

  • Telegram asks apps to slow down. If you ask for too much too fast, it tells you to wait. A downloader has to listen politely, wait, and carry on, or it either gives up or makes things worse.
  • Downloads fail in different ways. Some stall, some time out, some break halfway. Deciding what to keep, what to retry and what to throw away took more thought than I expected.
  • Channels are not described in just one way. The same channel can be referred to in several forms, and the app had to cope with all of them without losing track.
  • Packaging for two systems was the most painful part. Making the app run on Windows and on Macs took far more effort than writing the app.

One early release shipped with a settings file that should never have been in the package. It quietly capped downloads at a smaller size than I had intended. Version 0.3.1 fixed it, and my build checks now look for leftovers like that before anything goes out.

An earlier version also had a maximum file size setting that did nothing at all. It looked like a feature, but it never actually limited anything. I fixed it, and the default now means no limit, so large files are not blocked by accident.

The Mac version is for Apple Silicon only, and that was a deliberate choice. It is also not signed with a paid Apple certificate, so macOS blocks the first launch. The TgLoader page explains how to allow it once.

What I learned

  • A setting that does nothing is worse than no setting. People trust what they can see on the screen. If the app shows a limit, the limit has to work.
  • Defaults are part of the product. Most people never change them, so a wrong default is a bug that ships to everyone.
  • Check what you are about to ship. The mistake with the settings file was not a clever one. I simply did not look inside the package. Now I do, every time.
  • Be honest about what is untested. Linux and Android builds are untested for this version, so I do not claim them.

What I would do differently

The app grew quickly and some parts are harder to read than I would like. I would tidy those up, and I would like to check releases more carefully before they go out, so that I am not relying on running the app by hand and hoping.

I also think downloads could be kept busier. At the moment a group of files waits for its slowest member before the next group starts. That is my reading of how it behaves, and I have not measured the difference, so I will not claim a number.

Try it

TgLoader is free, for Windows 10 or later and for Macs with Apple Silicon. You need your own Telegram developer credentials, and it only reaches channels your account can already open. Use it for personal copies, and respect the copyright of what you download.

The TgLoader page has the full setup steps and limits. The downloads are at tgloader.preetam.org.