All Projects → snow922841 → Telegram_channel_downloader

snow922841 / Telegram_channel_downloader

一个电报群组、频道下载脚本,支持上传到GD、OD等rclone可以挂载的网盘。

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Telegram channel downloader

Tlg joincaptchabot
Telegram Bot to verify if users that join a group, are humans. The Bot send an image captcha for each new user, and kick any of them that can't solve the captcha in a specified time.
Stars: ✭ 226 (+4.63%)
Mutual labels:  bot, telegram
Anydlbot
An Open Source GPLv3 All-In-One Telegram Bot
Stars: ✭ 236 (+9.26%)
Mutual labels:  bot, telegram
Telegram Rat
Windows Remote Administration Tool via Telegram. Written in Python
Stars: ✭ 201 (-6.94%)
Mutual labels:  bot, telegram
Icopy
fclone telegram interface.Send commands to Telegram BOT for get a convience way to control fclone resources copy missions.
Stars: ✭ 188 (-12.96%)
Mutual labels:  bot, telegram
Urban Bot
🤖 The universal chatbot library based on React. Write once, launch Telegram, Facebook, Slack, ... every messenger with chatbots
Stars: ✭ 223 (+3.24%)
Mutual labels:  bot, telegram
Mellow
Mellow can communicate with several APIs like Ombi, Sonarr, Radarr and Tautulli which are related to home streaming to use those services directly in your Discord client.
Stars: ✭ 193 (-10.65%)
Mutual labels:  bot, telegram
Morse
📡 Clojure interface for Telegram Bot API
Stars: ✭ 209 (-3.24%)
Mutual labels:  bot, telegram
Micro Bot
🤖 Zero-configuration Telegram bot runner
Stars: ✭ 173 (-19.91%)
Mutual labels:  bot, telegram
Example Bot
[WIP] An A-Z example of a PHP Telegram Bot.
Stars: ✭ 211 (-2.31%)
Mutual labels:  bot, telegram
Noderssbot
Another Telegram RSS bot but in Node.js Telegram RSS 机器人
Stars: ✭ 212 (-1.85%)
Mutual labels:  bot, telegram
Heroku Telegram Bot
Starter pack to host your Python Telegram Bot on Heroku for free.
Stars: ✭ 183 (-15.28%)
Mutual labels:  bot, telegram
Profiles
👍 Make JavaScript Great Again
Stars: ✭ 238 (+10.19%)
Mutual labels:  bot, telegram
Telebot
Write Telegram bots in Rust with Tokio and Futures
Stars: ✭ 179 (-17.13%)
Mutual labels:  bot, telegram
Ruby Telegram Bot Starter Kit
✈️ Ruby Telegram boilerplate for creating awesome bots. Check out best tools from the world of bots - https://github.com/BotCube/awesome-bots
Stars: ✭ 197 (-8.8%)
Mutual labels:  bot, telegram
Flottbot
A chatbot framework written in Go. All configurations are made in YAML files, or inside scripts written in your favorite language.
Stars: ✭ 175 (-18.98%)
Mutual labels:  bot, telegram
Telegram Bot Api
First Telegram Bot API node.js library
Stars: ✭ 205 (-5.09%)
Mutual labels:  bot, telegram
Bitprophet
Node crypto trading platform for Binance exchange.
Stars: ✭ 166 (-23.15%)
Mutual labels:  bot, telegram
Java Telegram Bot Tutorial
Java Telegram Bot Tutorial. Feel free to submit issue if you found a mistake.
Stars: ✭ 165 (-23.61%)
Mutual labels:  bot, telegram
Scdlbot
Telegram Bot for downloading MP3 rips of tracks/sets from SoundCloud, Bandcamp, YouTube with tags and artwork.
Stars: ✭ 210 (-2.78%)
Mutual labels:  bot, telegram
Publicleech
can be found on Telegram as https://telegram.dog/PublicLeechGroup
Stars: ✭ 236 (+9.26%)
Mutual labels:  bot, telegram

telegram_channel_downloader

Telegram 频道/群组 文件下载脚本

脚本需要python3环境,具体安装教程自行搜索。

测试环境 Ubuntu 18.04.5 LTS & Python 3.6.9

1. 前提

git clone https://github.com/snow922841/telegram_channel_downloader.git
  • 安装fclone(可选)
wget https://github.com/mawaya/rclone/releases/download/fclone-v0.4.1/fclone-v0.4.1-linux-amd64.zip -O fclone.zip && unzip fclone.zip && mv fclone*/fclone /usr/bin && chmod +x /usr/bin/fclone && fclone version

2. 使用

  • 进入脚本目录
cd telegram_channel_downloader
  • 安装依赖
pip3 install -r requirements.txt
  • 修改telegram_channel_downloader.py文件内的 api_id 和 api_hash 为你自己的

  • 修改脚本内的频道名称、保存路径、 bot_token 、 admin_id 、 chat 等必填配置

  • 鉴于网友需要上传GD,特添加了使用gclone自动上传到团队盘的功能,需要在配置区域设置。具体查看脚本内注释

  • 运行

python3 tg_channel_downloader.py
  • 按照提示输入telegram绑定的手机号获取验证码并输入

  • 配置完成后需要给bot发送 /start 频道的链接 0 才会正式开始运行脚本,否则无法启动 0代表开始下载消息的ID,可以自行修改。

3. 常见问题

  • 关于获取admin_id

可以在电报中给@get_id_bot这个bot发消息获取

点击查看更新日志

2020-09-15更新

  • 移除下载上传进度条显示。

  • 使用异步并发,默认10个任务同时进行。

  • 修复异常重试

  • 远程添加任务,方便下载多个频道消息。

  • 移除redis保存任务

  • 增加全部频道、群组新消息监控,请在配置区域自行修改。

2020-09-03更新

  • ref超时异常自动重试

2020-09-01更新

  • 使用bot启动,并使脚本持久化,

  • 优化代码

  • 修复一些bug

2020-08-29更新

  • 更换telegram的第三方库

  • 默认上传到GD,目前未配置不上传,所以需要安装gclone

  • 默认过滤贴纸、动态贴纸、gif格式文件

  • 优化了下载和上传进度条的显示

  • 上传失败后会把消息ID保存在脚本所在的文件夹,方便以后可以手动下载

2020-08-19更新

  • 添加自动上传到Googledrive的功能

  • 使用redis缓存已经遍历的消息ID

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].