Neet-Nestor/Telegram-Media-Downloader

JavaScriptgreasyfork.org/scripts/446342-telegram-media-downloader

A script allowing you to download images and videos from Telegram web even if the group restricts downloading.

greasyforkgreasymonkeygreasymonkey-userscriptjavascripttelegramuserscript
Star 增长趋势
Star
5.5k
Forks
544
周增长
+46
Issues
63
2k4k
2022年7月2023年11月2025年4月2026年9月
制品库npm
README

Telegram Video Downloader / Telegram Media Downloader

Unlock Telegram: Download Anything You Like.

GitHub License Greasy Fork Version Greasy Fork Downloads

Overview

This user script unlocks and enables download of images, GIFs, audios, and videos in Telegram webapps from chats, stories, and even private channels where downloading is disabled or restricted.

(Note: some features are only available for specific Telegram webapp version. e.g. Audio message download is only available for the K webapp version.)

What are user scripts?

User scripts put you in control of your browsing experience. Once installed, they automatically make the sites you visit better by adding features, making them easier to use, or taking out the annoying bits. The user scripts on Greasy Fork were written by other users and posted to share with the world. They're free to install and easy to use.

Installation

Greasy Fork

  1. install a user script manager

    To use user scripts you need to first install a user script manager. Which user script manager you can use depends on which browser you use.

    (Note, If you are using Tampermonkey extension in a Chrome-based browser, following instructions to enable Developer Mode.)

  2. Install this script by visiting Greasy Fork: https://greasyfork.org/scripts/446342-telegram-media-downloader

Manual Installation

  1. install a user script manager

    To use user scripts you need to first install a user script manager. Which user script manager you can use depends on which browser you use.

    (Note, If you are using Tampermonkey extension in a Chrome-based browser, following instructions to enable Developer Mode.)

  2. Open Tampermonkey Dashboard, drag & drop src/tel_download.js into it and clicks the "install" button

How to Use

This script only works on Telegram Webapp.

For channels and chats that allow saving content, this script will have no effect. Please just use the official download button provided by the telegram webapp instead.

For channels and chats that disable downloading and restrict saving content, this script will add the download button back for images, GIFs and videos.

Image Download GIF Download Video Download Story Download

For videos, a progress bar will show on the bottom-right corder after you started downloading. For images and audios, there won't be a progress bar.

Supported Webapp Versions

There are 2 different versions of telegram webapps:

This script should work on both versions of webapp, but some features are only available in the /k/ version (such as voice message downloads). If certain features are not working, switching to the /k/ version is recommended.

Check Downloading Progress

A progress bar will show on the bottom-right of the screen for videos. You can also check DevTools console for logs.

Contributing

We welcome contributions from the community! If you’d like to contribute to Telegram Media Downloader, follow these steps:

Reporting Issues

If you find a bug, compatibility issue, or have a feature request, please:

  1. Check if the issue has already been reported in the Issues tab.
  2. If not, create a new issue with a clear title and description. Attach screenshots or logs if applicable.

Submitting Pull Requests

  1. Fork the repository: Click on the "Fork" button in the top-right of the repo.

  2. Clone your fork:

    git clone https://github.com/YOUR-USERNAME/Telegram-Media-Downloader.git
    cd Telegram-Media-Downloader
    
  3. Create a new branch for your feature or bugfix:

    git checkout -b feature-or-bugfix-name
    

    Make your changes and ensure the script still works correctly on supported Telegram webapps.

  4. Make your changes and ensure the script still works correctly on supported Telegram webapps.

  5. Commit your changes with a descriptive message:

    git commit -m "Add feature/fix issue: Brief description"
    
  6. Push to your fork:

    git push origin feature-or-bugfix-name
    
  7. Submit a Pull Request (PR):

Development Guidelines

  • Keep your code clean and well-documented.
  • Follow the existing coding style.
  • Test your changes on both Telegram WebK and WebZ versions.
  • Ensure compatibility with major user script managers like Tampermonkey and Violentmonkey.

Help with Translations

We want Telegram Media Downloader to be accessible to users worldwide! If you’d like to help translate the script’s Greasy Fork page, follow these steps:

How to Contribute a Translation

Check for existing translations in the docs/greasyfork folder of the repository.

Add a new file in docs/.md, using the appropriate language code (e.g., docs/fr-FR.md for French, docs/de-DE.md for German).

Translate the content from docs/greasyfork/en-US.md into your language while keeping the formatting intact. Submit a Pull Request following the steps in the Submitting Pull Requests section above.

Language Codes

Use standard IETF Language Tag (e.g., es-ES for Spanish, ja-JP for Japanese). You can find a full list of codes here.

Support Author

If you like this script, you can support me via Venmo or buy me a coffee :)

相关仓库
maboloshi/github-chinese

GitHub 汉化插件,GitHub 中文化界面。 (GitHub Translation To Chinese)

JavaScriptnpmGNU General Public License v3.0githubuserscript
maboloshi.github.io/github-chinese/
32.5k1.9k
88lin/video_vip

全网VIP视频免费破解脚本,通过集成多个第三方解析接口,去除广告,解锁视频网站的会员限制,让用户享受免费的视频观看体验。适配PC+移动,支持爱奇艺、腾讯、优酷、芒果TV、bilibili等主流视频平台!脚本长期维护更新,完全免费

JavaScriptnpmtampermonkeyuserscript
blog.88lin.eu.org/article/46
4.9k490
awesome-scripts/awesome-userscripts

📖 A curated list of Awesome Userscripts.

JavaScriptnpmawesomeOtheruserscriptsgreasemonkey
3.5k151
ChinaGodMan/UserScripts

🐒一些修改自网络的油猴脚本 Some Tampermonkey scripts modified from the internet

JavaScriptnpmOthertampermonkeyuserscripts
greasyfork.org/scripts
2k143
F9y4ng/GreasyFork-Scripts

The open source code of this project is used for userscripts (油猴脚本) for desktop browsers, including Font Rendering (Customized) (字体渲染(自用脚本)- Font Rendering.user.js), and Search Engine Assistant (优雅的搜索引擎助手 - Google & Baidu Switcher.user.js), etc.

JavaScriptnpmGNU General Public License v3.0javascriptgreasyfork
f9y4ng.github.io/GreasyFork-Scripts/
1.5k69
shenruisi/Stay

Stay is a local userscript manager and an extension sample for Safari on iOS/iPadOS.

JavaScriptnpmMozilla Public License 2.0safari-extensionadblock
github.com/shenruisi/Stay/wiki
1.3k103
tomorrow505/auto_feed_js

PT站一键转载脚本

JavaScriptnpmappGNU General Public License v3.0chromedouban-book
greasyfork.org/zh-CN/scripts/424132-auto-feed
1.2k114
andywang425/BLTH

哔哩哔哩(bilibili.com)油猴辅助脚本,Bilibili Live Tasks Helper

TypeScriptnpmMIT Licensebilibilibilibili-live
1.2k101