dossma
telegram-downloader
Python

Download all content from a Telegram channel

Last updated Mar 31, 2026
24
Stars
3
Forks
0
Issues
0
Stars/day
Attention Score
46
Language breakdown
Python 100.0%
Files click to expand
README

telegram-downloader

Download all content from a Telegram channel.

Motivation

When you know a channel which continously shares content of interest, you may want to store them on your computer. It is also useful as the channel, or the app itself, may shut down at some point.

Usage

The program is targeted for channels which provide media such as documents, audio files, videos or pictures. In this design, it is rather not suitable for plain text messages.

Procedure

To use this program, it is beforehand required to have an API ID and an API hash which you can get from https://core.telegram.org/api/obtainingapiid#obtaining-api-id. After that:
  • Set the folder where you want the files to be downloaded.
  • Paste your API ID and API hash in the designated fields.
  • Type in the channel name under the variable channel. Pasting the full link such as https://t.me/channelname works too.
  • Set the value for limit which indicates how many files you want to download. It downloads in order from the most recent one. Set None if you want to get all.
  • After starting the program, you may be prompted to enter your telephone number. Enter it with international format such as +49123456789 . Telegram sends you then a code which you then must enter too.
The program downloads all but checks if media is already present in the folder (it may have been downloaded before). If it is present, it is skipped.

Development setup

Required external libraries are

  • Telethon: https://github.com/LonamiWebs/Telethon
pip install telethon

Downloading can be rather slow. Then you can consider installing cryptg so that decrypting the received data is done in C instead of Python (much faster).

pip install cryptg

Meta

Author: Jonas Dossmann

Distributed under the AGPL-3.0 license.

https://github.com/dossma/

[npm-image]: https://img.shields.io/npm/v/datadog-metrics.svg?style=flat-square [npm-url]: https://npmjs.org/package/datadog-metrics [npm-downloads]: https://img.shields.io/npm/dm/datadog-metrics.svg?style=flat-square [travis-image]: https://img.shields.io/travis/dossma/node-datadog-metrics/master.svg?style=flat-square [travis-url]: https://travis-ci.org/dossma/node-datadog-metrics [wiki]: https://github.com/dossma/ebook-file-renaming/wiki

🔗 More in this category

© 2026 GitRepoTrend · dossma/telegram-downloader · Updated daily from GitHub