Coder Social home page Coder Social logo

telegram_channel_downloader's Introduction

Telegram Channel Downloader

Download all media stuff from telegram, support for multiple channels.Using Python 3.8

Quick Start

Install Python3.8 then:

$ pip3 install -r requirements.txt

Run once and the programe will generate config files at ./Config:

$ Python3 downloader.py

Configurate ./Config/config.yaml, here is an example

ProxyAddress: 127.0.0.1
ProxyPort: 7890
ProxyPassword: null
ProxyUser: null
api_hash: your_api_hash
api_id: your_api_id
chat_ids:
- channel_name01
- channel_name02
#...copy one or more chat id here, channel name is also okey

This is a way to find Chat id. I recommend @getidsbot tho.

config.yaml will be DELETED when the program spot something error.Be sure backup your file before you start the program!

Run again and login to your telegram, the program will start download all media from the channel.

You can edit ./Config/monitors.yaml to define where to start download:

channel_name01:
  ids_to_retry: # failed downloads, will re-download them after all media downloads complete, don't edit
  - 2086
  - 2612
  - 6980
  last_read_message_id: 21149 #message id where to start download
channel_name02:
  ids_to_retry: []
  last_read_message_id: 10056 

Files will be downloaded at ./Downloads/{channel_name}/{media_type}/

{media_type} can be Photo, Video, Animation, Document, Audio

Special Thanks

Checkout these links and see how they inspire me.

Dineshkarthik/telegram_media_downloader

snow922841/telegram_channel_downloader

telegram_channel_downloader's People

Contributors

ms0ng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.