# Telegram Channel Media Downloader (`getinsaver.com/telegram-media-downloader`) Actor

Paste public Telegram channel post links and get direct download links for their videos, photos and files, including large files up to 4 GB. One price per post.

- **URL**: https://apify.com/getinsaver.com/telegram-media-downloader.md
- **Developed by:** [GetInSaver Team](https://apify.com/getinsaver.com) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.80 / 1,000 telegram channel posts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Telegram Channel Media Downloader

Paste links to posts in **public Telegram channels** and get **direct download links** for their videos and photos. Large files up to 4 GB are supported.

- **You pay only for links that return files.** Private, removed or unsupported links are free.
- **One price per link.** A link with several files costs the same as a link with one.
- **Tiny start cost.** Each run has only Apify's standard start fee of $0.00005 ($0.05 per 1,000 runs).

### What links are supported?

| Platform | Links | Example |
|---|---|---|
| Telegram | Posts of public channels, including large files | `https://t.me/telegram/193` |

Only **public** content is supported. Private accounts, private groups and content that needs a login are not.

### How to use it

1. Paste one or more links into **Links** (one per line, up to 1,000 per run).
2. Optional: lower **Max files per link** if you only need the first files of a carousel, album or Highlight (1 to 20, default 20).
3. Click **Start**. Each link becomes one row in the **Output** tab with its download links.

Download the files soon after the run: the links are temporary (see below).

### Input example

```json
{
  "urls": [
    "https://t.me/telegram/193"
  ],
  "maxFilesPerLink": 20
}
```

### Output example

```json
{
  "url": "https://t.me/telegram/193",
  "platform": "Telegram",
  "status": "ok",
  "fileCount": 1,
  "files": [{ "type": "video", "url": "https://..." }],
  "title": null,
  "author": "...",
  "caption": "...",
  "error": null,
  "errorCode": null
}
```

A link without files comes back with `"status": "failed"` (or `"unsupported"`), an `error` that explains why, and no charge.

### How much does it cost?

You pay per link that returns at least one file, plus Apify's standard start fee of $0.00005 per run. Prices on higher Apify plans are lower.

| Link type | Price per link |
|---|---|
| Telegram channel post | $0.006 |

For example, one run with 1,000 Telegram channel post links that all return files costs $6.00005 ($6.00 for the links and $0.00005 for the start). Links that return nothing cost $0. You can set a maximum cost per run in the run options, and the Actor stops when it is reached.

**Apify free plan:** one run processes up to 10 links. Runs on paid Apify plans process up to 1,000 links.

### How long do the download links work?

All download links are temporary, so download the files soon after the run.

- **Telegram:** links for large files are valid for **1 hour**. Telegram files up to 4 GB are supported.
- Links from the platforms' own servers stop working after a while. If a link has stopped working, run the Actor again for that post.

### Use it from your code

Run the Actor through the [Apify API](https://docs.apify.com/api/v2) or the Apify JavaScript and Python clients, and read the results from the run's default dataset. You can also connect it to Make, Zapier, n8n or webhooks through Apify integrations.

### Other downloaders by GetInSaver Team

- [Social Media Downloader: Instagram, TikTok, X, Telegram](https://apify.com/getinsaver.com/social-media-downloader)
- [Instagram Reels & Post Downloader](https://apify.com/getinsaver.com/instagram-reels-downloader)
- [Instagram Story & Highlight Downloader](https://apify.com/getinsaver.com/instagram-story-downloader)
- [TikTok Video Downloader](https://apify.com/getinsaver.com/tiktok-video-downloader)
- [Twitter (X) Video Downloader](https://apify.com/getinsaver.com/twitter-video-downloader)
- [Pinterest Video & Image Downloader](https://apify.com/getinsaver.com/pinterest-video-downloader)
- [Facebook Video & Reels Downloader](https://apify.com/getinsaver.com/facebook-video-downloader)

### FAQ

**Which links work?** Posts of public channels, like `t.me/<channel>/<number>`. Private groups and `t.me/c/...` links need membership and are not supported.

**How long do the links work?** Links for large files are valid for 1 hour, so download them soon after the run.

**Why did a link fail?** The post may be private, deleted, age-restricted or region-restricted, or have no photo or video. Failed links are not charged. If a public link keeps failing, report it in the **Issues** tab with the link.

**Can I download private content?** No. The Actor only reads content that anyone can open without logging in.

**Is it legal?** The Actor only fetches publicly available content. You are responsible for how you use the files: respect copyright and the rights of the people in them, and use downloads for purposes the law allows, such as personal archiving, research or content you own.

**Is this an official tool?** No. This Actor is not affiliated with, endorsed by or sponsored by Instagram, Meta, TikTok, X, Pinterest or Telegram. All trademarks belong to their owners.

# Actor input Schema

## `urls` (type: `array`):

Public Telegram links, one per line. Posts of public channels, including large files.

## `maxFilesPerLink` (type: `integer`):

For carousels, albums, Stories and Highlights: how many files to return for one link. The price per link stays the same.

## Actor input object example

```json
{
  "urls": [
    "https://t.me/telegram/193"
  ],
  "maxFilesPerLink": 20
}
```

# Actor output Schema

## `results` (type: `string`):

One row per input link with its direct download links, author, title and caption.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://t.me/telegram/193"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("getinsaver.com/telegram-media-downloader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": ["https://t.me/telegram/193"] }

# Run the Actor and wait for it to finish
run = client.actor("getinsaver.com/telegram-media-downloader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://t.me/telegram/193"
  ]
}' |
apify call getinsaver.com/telegram-media-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getinsaver.com/telegram-media-downloader"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/AVdzZs1GzKwWtKF6u/builds/7sMozphRtb4dkZJuY/openapi.json
