# Telegram Comments Scraper | Telegram Channel Comments & Replies (`hyperbach/telegram-scraper`) Actor

Telegram comments scraper, no login: every comment under public channel posts, from post links or channels. Commenter name, username and photo, exact text, date, the comment it answers, reactions, media. Whole threads to their end, a free row per post with Telegram's count. Misses free.

- **URL**: https://apify.com/hyperbach/telegram-scraper.md
- **Developed by:** [Hyperbach](https://apify.com/hyperbach) (community)
- **Categories:** Social media, News, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.43 / 1,000 comments

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 Comments Scraper | Telegram Channel Comments & Replies

**Every comment under public Telegram channel posts: give post links or channels, get one row per comment with the commenter's name, username and photo, the exact text, the time, the comment it answers with that comment's author and text, reactions and media — the whole thread, read to its end, with a free row per post that says how far the read got against Telegram's own count.** No login, no Telegram account, no phone, no API key.

**$0.85 per 1,000 `comment` rows on the Free plan, $0.7225 on Starter.** A run start is $0.000776. The default input returns about 55 rows for about $0.043276. Post rows, channel rows, a post whose discussion Telegram does not show, a comment a filter leaves out and a run that delivered no comment cost nothing.

![Telegram's comment widget for a post of an invented bakery channel, in a browser: 18 comments, one with a photo of a rye loaf, a question from Mira Holt about the rye loaf, and Tom Ellery's reply that quotes it. Beside it, the row this Actor returns for the reply, with reply_to_author_name and reply_to_text highlighted: the author and text of the comment it answers, then the reply's own text, its author, reactions and the post's comment count.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-telegram-scraper.webp)

### How it compares

- **Cheaper than automation-lab's Telegram Scraper, with more data:** $0.59 per 1,000 comments, against $0.76; 28 fields per comment, against 16. It is 4 times faster: 63 comments in 5.3 s, against our 60 comments in 19 s.
- **3 times cheaper than fetch_cat's Telegram Channel Posts Scraper:** $0.59 per 1,000 comments, against $1.97.

Measured on 2026-11-17. Each line compares one job, run by both scrapers at the same time. Prices are per 1,000 comments: Apify Actors at the Scale plan's prices.

### Tested head-to-head on 2026-11-17

The job: the comments of one public Telegram channel's 3 newest posts (tginfo), up to 20 comments a post. Every Actor ran on it the same day from the same harness; every run's cost is at the Scale plan's prices: a rival's charged events at its price for that plan, this Actor's at its list price. Fields counts the filled fields of a typical row. The comments of one channel's 3 newest posts, up to 20 a post. automation-lab writes each comment as a message row; fetch_cat nests the comments inside its post rows; ours writes one row a comment with the commenter's username, photo and the comment it answers. Re-measured monthly.

| Actor | Rows | First row | Run time | Cost | Fields | Failures |
|---|---|---|---|---|---|---|
| **this Actor** | 60 | 9.2 s | 19 s | $0.035 | 28 | none |
| `automation-lab/telegram-scraper` | 63 | 5.4 s | 5.3 s | $0.048 | 16 | none |
| `fetch_cat/telegram-channel-posts-scraper` | 3 | 6.0 s | 6.5 s | $0.006 | 30 | none |

### Why this Telegram comments scraper

- **The whole thread, to its end.** The widget Telegram shows on the web gives the newest 100 comments; this Actor then asks the widget's own next page, 50 at a time, from the oldest comment it holds until Telegram says there is none older. In our tests a 155-comment thread came back whole, a 488-comment thread to the 475 the widget shows, and two runs of the lane's identical test post gave 59 of 59. Each post's row says COMPLETE (every comment Telegram counts), LIST_END (Telegram's list ended under its own count: it counts comments the web never shows; the end is read twice), or CAPPED at your limit.
- **Never a page without names.** Telegram keeps each widget page for about a minute and serves that copy with every commenter's name, link and photo empty (two popular actors delivered such rows: null names on 5 of 5). A page with a nameless comment is read again at once under a fresh request; 0 of 1,104 fresh comments in our study came without a name.
- **The comment's own text and its parent.** Each reply carries the id of the comment it answers (`reply_to_comment_id`), that comment's author and text, and its own text, never the parent's: the lane's leader had the reply-to on 0 of 10 replies of our test post, another actor put the parent's text in the reply's row.
- **A row for every post, with Telegram's own words.** Many channels do not show their discussion on the web (21 of 30 large channels in our study). Such a post gets a free row that quotes Telegram (`Discussion is not available at the moment.`) and says whether the post itself exists, so a run never ends green and empty without saying why.
- **Filters before the charge.** Comments posted after a date, comments that hold your words, a minimum of reactions, top-level comments only: a comment left out is not delivered and not charged, and each post's row counts it.
- **No account to lose.** Telegram's public web pages only: no phone, no session that logs out or gets banned.

### Who it's for

- **Marketers and community managers** — what an audience says under a channel's posts: every comment with its author, reactions and the thread it answers, newest first.
- **Researchers and analysts** — whole discussions under posts in a date window, with replies linked to their parents, for sentiment, topic or network analysis.
- **Crypto and finance watchers** — the comments under a project's or a ticker's posts, filtered by words or reactions, with wallet addresses and cashtags pulled out.
- **Developers and agents** — typed rows, a free row per post with its verdict against Telegram's own count, and a run summary to check a pipeline against.

### Quick start

**All comments of one post (at most 1,000)**

```json
{
  "postUrls": [
    "https://t.me/tginfo/4437"
  ],
  "maxCommentsPerPost": 0,
  "maxItems": 1000
}
```

**The newest 3 posts of a channel, 20 comments each**

```json
{
  "channels": [
    "tginfo"
  ],
  "maxPostsPerChannel": 3,
  "maxCommentsPerPost": 20,
  "maxItems": 60
}
```

**A channel's posts of the last 7 days, comments with a word**

```json
{
  "channels": [
    "durov_russia"
  ],
  "oldestPostDate": "7 days",
  "maxPostsPerChannel": 0,
  "commentKeywords": [
    "telegram"
  ],
  "maxItems": 500
}
```

**Only comments of the last 24 hours, top level only**

```json
{
  "postUrls": [
    "https://t.me/tginfo/4455"
  ],
  "commentsPostedAfter": "24 hours",
  "onlyTopLevelComments": true,
  "maxItems": 200
}
```

### Switching from `automation-lab/telegram-scraper`?

Your input works as it is. Each name in the left column is read as this Actor's own field and the run log says so (`read <theirs> as <ours>`); a name marked *not read* is ignored with a note. A value in the other Actor's shape, an object list or its own date form, is read too.

| automation-lab/telegram-scraper | this Actor | what to know |
|---|---|---|
| `channels` | `channels` | Usernames, @usernames or t.me links; a post link is read as that post. |
| `maxMessages` | `maxPostsPerChannel` | The newest posts read from each channel; their comments are the rows. |
| `oldestMessageDate` | `oldestPostDate` | A date (2026-11-01) or a relative time (7 days). |
| `newestMessageDate` | `newestPostDate` | A date: posts up to the end of that day. |
| `lastNDays` | `oldestPostDate` | A number of days is read as that many days ago. |
| `afterMessageId` | *not read* | Read as fromPostId = the id + 1 (the leader's cursor is exclusive, fromPostId includes its id). |
| `afterMessageIds` | *not read* | Read per channel: each named channel's own fromPostId = its id + 1. |
| `keywords` | *not read* | Not read: it filters the leader's message rows. To keep only comments that hold words, use commentKeywords. |
| `excludeKeywords` | *not read* | Not read: a message filter of the leader's. |
| `mediaTypes` | *not read* | Not read: a message filter of the leader's; each comment row lists its own media types. |
| `includeComments` | *not read* | Not needed: this Actor's rows are the comments. |
| `maxCommentsPerMessage` | `maxCommentsPerPost` | The most comments of one post, newest first; 0 = the whole thread. |
| `includeChannelInfo` | *not read* | Not read: the channel's profile row is our Telegram Profile Scraper's; the channel row here carries the title and the rounded subscriber count. |
| `profileOnly` | *not read* | Not read: use our Telegram Profile Scraper for profile rows alone. |

**What differs:**

- The leader reads a channel's messages and adds comments when `includeComments` is on; this Actor reads comments always, from post links or from a channel's posts, and writes a free row per post (the leader charges the messages themselves).
- `maxCommentsPerPost` takes any number, 0 for the whole thread (the leader's `maxCommentsPerMessage` is 1 to 200, default 20).
- The leader's message filters (`keywords`, `excludeKeywords`, `mediaTypes`) filter posts; here `commentKeywords` filters comments, and the posts of a channel are chosen by count, date and id.
- The channel's profile row (`includeChannelInfo`, `profileOnly`) is our Telegram Profile Scraper's; here each row carries the channel's title and the channel row its rounded subscriber count.

### Output

One `comment` row per comment (charged), one free `post` row per post read (its own fields, its comment count, the comments delivered and the read's verdict), one free `channel` row per channel you gave, and one free `input` row for a value that names nothing readable (`record_type` says which):

| field | meaning |
|---|---|
| `record_type` | `comment` (a comment, charged), `post` (a post read, free), `channel` (a channel you gave, free) or `input` (a value that names nothing readable, free). |
| `status` | `ok`, or why a row carries no comment: on a comment `names_hidden` (Telegram served no name three times: free); on a post `no_comments`, `not_available` (Telegram's words in `note`), `post_not_found`, `not_found`, `below_min_comments`, `duplicate`, `failed`, `not_read`; on a channel `not_a_channel`, `no_posts`, `duplicate`, `failed`, `not_read`; on an input `invalid_input`. |
| `input` | The post link or channel you gave that this row answers. |
| `channel_username` | The channel's username as its posts name it. |
| `channel_title` | The channel's title. |
| `channel_id` | The channel's own numeric id (Telegram's id without the -100 prefix), on every row of the channel. |
| `post_id` | The post's number in its channel. |
| `post_url` | The post's link (t.me/<channel>/<id>). |
| `comment_id` | The comment's id in the channel's discussion group. |
| `comment_url` | The comment's own link (the post's link with ?comment=<id>). |
| `published_at` | When the comment (on a post row: the post) was published (UTC). |
| `author_name` | The commenter's name as Telegram shows it (emoji included); Telegram's own label for a deleted account. |
| `author_username` | The commenter's username, when the account has a public one. When Telegram's render of one comment leaves the link off, the username the same run read for the same name and photo (RUN_SUMMARY `walk.links_filled` counts them). |
| `author_url` | The commenter's t.me link, when the account has a public username. |
| `author_photo_url` | The commenter's photo (null for a letter avatar). |
| `author_has_photo` | The commenter has a profile photo. |
| `author_is_channel` | True when the comment is written as the post's own channel; false for every other named commenter, the discussion group's own comments included (the widget names the group by its handle alone); null on a comment Telegram served without its commenter. |
| `text` | The comment's own text (on a post row: the post's text), emoji as characters; never the quoted parent's. |
| `text_length` | The text's length in characters. |
| `language` | The comment's language as an ISO 639-1 code, with `detectLanguage` only: a statistical guess, null for a text under 20 letters (links, handles, tags and wallet addresses left out) or an unclear one; a Cyrillic text the detector calls Bulgarian is read as Russian unless it writes Bulgarian's vowel ъ. |
| `is_edited` | The comment was edited. |
| `is_reply` | The comment answers another comment. |
| `reply_to_comment_id` | The id of the comment it answers. |
| `reply_to_author_name` | The answered comment's author. |
| `reply_to_text` | The answered comment's text as the reply shows it (its start, or the part the commenter quoted). |
| `reply_is_quote` | `reply_to_text` is a part the commenter quoted, not the start of the answered comment. |
| `reactions` | Each reaction: the emoji (⭐ for paid Stars), its custom emoji id, the count as a number and as shown. |
| `reactions_total` | All reactions added up. |
| `media` | Each photo, video, audio, document or sticker: its type and its file or page link, with a video's duration and thumbnail. |
| `media_types` | The media types, once each. |
| `media_not_supported` | Telegram's own words when the web page does not show a part ("Please open Telegram to view this comment", "This media is not supported in your browser", "Media is too big"). |
| `link_preview` | A link preview: its link, site, title, description and image. |
| `hashtags` | The hashtags in the text. |
| `cashtags` | The cashtags ($TON) in the text. |
| `mentions` | The @usernames in the text. |
| `links` | The outgoing links in the text. |
| `crypto_addresses` | Wallet addresses written in the text (BTC, ETH, TRON, TON shapes): their type and the address. |
| `text_html` | The comment's text as HTML (bold, links, code, quotes, spoilers, custom emoji). |
| `post_comments_count` | On a comment: its post's comment count, as Telegram counts it. |
| `views` | On a post: views as a number (rounded by Telegram above 999). |
| `views_shown` | On a post: views as the page shows them ("16.3K"). |
| `author_signature` | On a post: the author's signature, when the channel signs its posts. |
| `forwarded_from` | On a post: the chat it was forwarded from. |
| `comments_count` | On a post: its comment count, as Telegram counts it (null when Telegram shows no discussion). |
| `comments_delivered` | On a post or a channel: the comment rows delivered for it. |
| `comments_filtered` | On a post: the comments read and left out by your filters (not charged). |
| `verdict` | On a post: COMPLETE (every comment Telegram counts), LIST_END (the list ended under the count; read twice), CAPPED (maxCommentsPerPost), DATE_LIMIT (commentsPostedAfter), PARTIAL (the run stopped: `note` says why). On a channel: CAPPED, DATE_LIMIT, ID_LIMIT, COMPLETE (its first post reached), PARTIAL. |
| `channel_subscribers` | On a channel row: its subscribers as a number (rounded by Telegram's page). |
| `channel_subscribers_shown` | On a channel row: its subscribers as the page shows them ("84K"). |
| `posts_read` | On a channel row: the posts read. |
| `linked_chat_id` | The id of the channel's discussion group (the comments' home). |
| `note` | Why a post, channel or input row has the status or the verdict it has, in Telegram's words where it gave some. |
| `scraped_at` | When this row was read (UTC). |

Example record:

```json
{
  "record_type": "comment",
  "status": "ok",
  "input": "https://t.me/tginfo/4437",
  "channel_username": "tginfo",
  "channel_title": "Telegram Info",
  "channel_id": 1003307527,
  "post_id": 4437,
  "post_url": "https://t.me/tginfo/4437",
  "comment_id": 1834647,
  "comment_url": "https://t.me/tginfo/4437?comment=1834647",
  "published_at": "2026-09-29T15:09:59Z",
  "author_name": "Telegram Info Чат",
  "author_username": "tginfochat",
  "author_url": "https://t.me/tginfochat",
  "author_photo_url": "https://cdn4.telesco.pe/file/k6uhSw5qa3bsZupsnU7ryFIT-4rXfMFNQKMKp70pjsyX7yQgQsoJ6FV9Dmks0h2j0Q1DvO3E_K2msfMRB8HlA0_-s4fbN2rCru_sg_bTOp-_KDXpgYfcJkwOBYD5wpzpaOYHD_EQyVsKKwkuA3pnZEcLCN5FjVvsIHy2JjqCZy8mE5-NKkaKBD7Tb2gLY5m6Cq1END0YoJvJZZ6pYFFRvKk5bW1FHyd8R83MkuS5lTnA5RHtU-BACW0V1lnmG2M7cRJ9h95TF0Gm06XPBsFfpP9Mut5Fw6ftnRr35aDfLfWhBzwZWEyJafH6AXdDgzWIolNKYZfacTXNoLmz0P6_sg.jpg",
  "author_has_photo": true,
  "author_is_channel": null,
  "text": "@walt",
  "text_length": 5,
  "language": null,
  "is_edited": false,
  "is_reply": true,
  "reply_to_comment_id": 1834645,
  "reply_to_author_name": "[redacted: a private commenter]",
  "reply_to_text": "[redacted: the answered comment's text]",
  "reply_is_quote": false,
  "reactions": [
    {
      "emoji": "❤",
      "custom_emoji_id": null,
      "paid": false,
      "count": 2,
      "count_shown": "2",
      "count_precision": "exact"
    }
  ],
  "reactions_total": 2,
  "media": null,
  "media_types": null,
  "media_not_supported": null,
  "link_preview": {
    "url": "http://t.me/walt",
    "site_name": "Telegram",
    "title": "Walt (ex. Wallet)",
    "description": "💎 Buy and send USDT, Gold, Bitcoin, GRAM and other crypto.\n🌏 Trusted by 150M users.\n🎧 24/7 support: @walt_support",
    "image_url": "https://cdn4.telesco.pe/file/o25lOYBwhFA4-EkyEu0n3LHB34htW0_2xQ0mtiF9K91Ql2n_BSb87lY96sSdwy6JpHRs-RLDU8lYTCAApS3TcVBo_oKZGFu8QggAwCdxLn6hyYaL9fr1u4TLtv3EQAykEyYlQr_uiMphj6dvAhZXZWOXIt4CBcLZEzVM_FFQ8LzCzFW6PRAvgKD7emdFx3LB4FQRRprcdCpb7DWZhIpUloTeF-WflP9q71gg5pgMOfF1eZKVOCpnZt0_7xO8pTa6UJmmbs8gh8ji4x4pAk8fYjhSqsnSFbqeDV9T3oiH1HY9He1eSXNTggFwHI8eIIFTegfwviesffA83vmUS_US8A.jpg"
  },
  "hashtags": null,
  "cashtags": null,
  "mentions": [
    "walt"
  ],
  "links": null,
  "crypto_addresses": null,
  "text_html": "<a href=\"https://t.me/walt\" target=\"_blank\">@walt</a>",
  "post_comments_count": 25,
  "views": null,
  "views_shown": null,
  "author_signature": null,
  "forwarded_from": null,
  "comments_count": null,
  "comments_delivered": null,
  "comments_filtered": null,
  "verdict": null,
  "channel_subscribers": null,
  "channel_subscribers_shown": null,
  "posts_read": null,
  "linked_chat_id": 1013954462,
  "note": null,
  "scraped_at": "2026-11-17T00:39:05Z"
}
```

### Pricing

**Pay only for the comments a run delivers**, plus one run start. Post rows, channel rows and status rows are free, no platform usage is billed to you, and the prices fall with your Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| Comment (`comment`) | per 1,000 | $0.85 | $0.7225 | $0.5763 | $0.425 |
| Run start (`start`) | per run | $0.000776 | $0.000776 | $0.000776 | $0.000776 |

A comment is **$0.85 per 1,000** on the Free plan ($0.00085 a comment) and $0.7225 on Starter, with everything its row carries: the commenter's name, username and photo, the exact text, the time, the comment it answers with that comment's author and text, reactions and media. Each run that delivers a comment pays the **run start, $0.000776 once**.

So the example input (one post link and a channel's 3 newest posts, up to 20 comments a post, 50 at most) costs $0.043276 on the Free plan and $0.036901 on Starter; 10 post links with 1 comment each $0.009276 and $0.008001; two whole threads of 25 and 59 comments $0.072176 and $0.061466; a 488-comment thread read to the 475 comments Telegram's web shows $0.404526 and $0.3439635. **Free:** every post row and channel row, a post whose discussion Telegram does not show (`not_available`), a post that does not exist, a channel name nobody holds, a value that is not a Telegram post or channel, a second spelling of a target already read, the comments a filter leaves out (counted on the post's row), a comment Telegram served without its commenter three times (`names_hidden`), and a run that delivered no comment (no run start either). A run that stops early (a timeout, an abort, the charge limit) is charged for the comments it delivered.

Before the first request the log names the prices at your plan and the most the run can cost: `maxCommentsPerPost` for each post, `maxPostsPerChannel` for each channel, `maxItems` and your charge limit bound it; with `maxCommentsPerPost` 0 each thread is read to its end, so Telegram's own count of each post's comments decides the rows and the run stops at your charge limit. Enterprise plans have their own rates: the Actor's Pricing tab shows the price for your plan.

### Usage patterns

- **Whole threads** — With `maxCommentsPerPost` 0 the Actor reads each thread to Telegram's end. A post's row then says COMPLETE when every comment Telegram counts came back, or LIST_END with both numbers when the list ended under Telegram's count (the header counts comments the web widget never shows, for example 475 shown of 488 counted), read a second time on a fresh connection before it says so.
- **A channel's recent discussions** — `channels` with `maxPostsPerChannel`, a date window (`oldestPostDate`, `newestPostDate`) or an id range (`fromPostId`, `toPostId`): the posts are taken newest first and read four at a time, so their rows come as each thread ends (sort by `post_id` for the channel's own order). `minComments` skips posts with fewer comments for about 3.5 KB a post, before any comment is read.
- **Filters** — `commentsPostedAfter`, `commentKeywords`, `minCommentReactions` and `onlyTopLevelComments` decide which comments are delivered and charged; the per-post cap counts the comments kept. A date cut stops a thread's walk at its first older page.
- **Languages** — `detectLanguage` names each comment's language (an ISO 639-1 code) from texts of 20 letters or more. It is off by default because it takes the run's processor about as long as the reading itself.

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `postUrls` | `array` | `[]` | Links to public channel posts, one a line: https://t.me/<channel>/<post id> (also t.me/s/…, telegram.me, a link with ?comment= or ?single, a link another site wraps). Each post's comments are read, newest first. A channel name pasted here is read as a channel. A private link (t.me/c/…) or an invite link gets a free row that says why. |
| `channels` | `array` | `[]` | Public channels, one a line: a username, @username or a t.me link. The channel's newest posts are read (Max posts per channel, the date window or the post-id range below), and the comments of each. A post link pasted here is read as that post. Only channels whose discussion Telegram shows on the web have comments to read: every other post gets a free row with Telegram's own words. |
| `maxPostsPerChannel` | `integer` | `10` | The newest posts read from each channel (service messages not counted); 0 = every post the date window or the id range holds. |
| `oldestPostDate` | `string` |  | Channels: only posts published on or after this date (2026-11-01), or a relative time (7 days). The walk stops at the first older post. |
| `newestPostDate` | `string` |  | Channels: only posts published on or before this date (the whole day counts). |
| `fromPostId` | `integer` |  | Channels: only posts with this id or a higher one (the number at the end of a post link). With the id of the newest post you already have + 1, a run reads only the newer posts. |
| `toPostId` | `integer` |  | Channels: only posts with this id or a lower one; the walk starts there. |
| `maxCommentsPerPost` | `integer` | `0` | The most comments delivered for one post, newest first; 0 = the whole thread, read to its end. The post's row says whether its comments were all read (COMPLETE), the list ended under Telegram's count (LIST_END), or this cap stopped it (CAPPED). |
| `commentsPostedAfter` | `string` |  | Only comments posted on or after this date (2026-11-01), or a relative time (24 hours, 7 days). Older comments are not delivered and not charged; the walk of a thread stops at the first older page. |
| `commentKeywords` | `array` | `[]` | Only comments whose own text holds one of these words or phrases (any case, any language). Others are not delivered and not charged; each post's row counts them. |
| `minCommentReactions` | `integer` | `0` | Only comments with at least this many reactions (all emoji together); 0 = every comment. |
| `onlyTopLevelComments` | `boolean` | `false` | Leave out replies to other comments (not delivered, not charged). |
| `minComments` | `integer` | `0` | Read only posts with at least this many comments (Telegram's own count, read first for about 3.5 KB a post); a post under it gets a free row and no comment is read. 0 = every post. |
| `detectLanguage` | `boolean` | `false` | Name each comment's language (an ISO 639-1 code such as ru, en, uk) from its text of 20 letters or more; null when the text is shorter or the language is not clear. Off by default: the detection takes the run's processor about as long as reading the comments. |
| `maxItems` | `integer` | `0` | The most charged comments of the whole run; 0 = no cap beyond your charge limit. Post, channel and status rows are free and do not count. |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A search that matches nothing is not an error: the dataset is empty and nothing is charged. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**Why does a post say `not_available`?**

Telegram shows the discussion on the web only for channels whose comment group is public, and a channel can turn comments off for one post. The row quotes Telegram (`Discussion is not available at the moment.`) and says whether the post itself exists. Every rival reads the same web widget, so no tool reads those comments without a Telegram account.

**Why fewer comments than the post's count?**

Telegram's count includes comments its web widget never shows (deleted ones, or those of accounts it hides): in our tests 475 shown of 488 counted, 25 of 31. The post's row says LIST_END with both numbers, after reading the end a second time.

**Is the commenter's name always there?**

Yes on every row charged: a page Telegram serves from its short-lived copy without names is read again at once. If that copy came back three times in a row, its comments go out free with `status` `names_hidden` and no name.

**Does a private channel or a group work?**

No: only public channels' posts have a public discussion. A private link (t.me/c/…) or an invite link gets a free row that says so; a group's name gets a free channel row.

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/telegram-scraper').call({"postUrls": ["https://t.me/tginfo/4437"], "maxCommentsPerPost": 0, "maxItems": 1000});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/telegram-scraper').call(run_input={'postUrls': ['https://t.me/tginfo/4437'], 'maxCommentsPerPost': 0, 'maxItems': 1000})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/telegram-scraper --input '{"postUrls": ["https://t.me/tginfo/4437"], "maxCommentsPerPost": 0, "maxItems": 1000}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~telegram-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"postUrls": ["https://t.me/tginfo/4437"], "maxCommentsPerPost": 0, "maxItems": 1000}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/telegram-scraper` and ask, for example: "Get all comments under this Telegram post with each commenter's name, the text and the date". The agent fills the input from the table above and reads the rows from the run's dataset. A field under the name another Actor gives it is read as this Actor's own: `startUrls`, `urls`, `url`, `links` as `postUrls`; `channel`, `channelUsernames`, `channelNames`, `usernames` as `channels`; `maxMessages`, `maxPosts`, `maxMessagesPerChannel`, `postsPerChannel` as `maxPostsPerChannel`; `oldestMessageDate`, `lastNDays`, `dateFrom`, `fromDate` as `oldestPostDate` (and more). An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/telegram-scraper/reviews), at any rating, helps the next buyer choose.

### See also

- **[Telegram Profile Scraper](https://apify.com/hyperbach/telegram-profile-scraper)** — Telegram channels, groups, bots and users by username or link, with the exact subscriber or member count.
- **[YouTube Channel Search Scraper](https://apify.com/hyperbach/youtube-channel-search-scraper)** — the YouTube channels a keyword finds, with subscribers, the exact video and view counts and the country.
- **[Threads Scraper](https://apify.com/hyperbach/threads-scraper)** — Threads profiles with the exact follower count, their posts and replies with view counts, and keyword and tag search, without a login.
- **[Substack Scraper](https://apify.com/hyperbach/substack-scraper)** — the posts of a Substack newsletter with the full text of free posts, the date, the paywall flag and the likes.
- **[Weibo Scraper](https://apify.com/hyperbach/weibo-scraper)** — Weibo posts, profiles, search, comments and the hot-search boards, without a login.
- **[Pinterest Search Scraper](https://apify.com/hyperbach/pinterest-search-scraper)** — the pins of a Pinterest search, with the link each pin points to, the image and the pinner.

**Run them together:** Put the `author_username` of the commenters this run returns into Telegram Profile Scraper's **Usernames or t.me links** to get each commenter's public profile.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

## `postUrls` (type: `array`):

Links to public channel posts, one a line: https://t.me/<channel>/<post id> (also t.me/s/…, telegram.me, a link with ?comment= or ?single, a link another site wraps). Each post's comments are read, newest first. A channel name pasted here is read as a channel. A private link (t.me/c/…) or an invite link gets a free row that says why.

## `channels` (type: `array`):

Public channels, one a line: a username, @username or a t.me link. The channel's newest posts are read (Max posts per channel, the date window or the post-id range below), and the comments of each. A post link pasted here is read as that post. Only channels whose discussion Telegram shows on the web have comments to read: every other post gets a free row with Telegram's own words.

## `maxPostsPerChannel` (type: `integer`):

The newest posts read from each channel (service messages not counted); 0 = every post the date window or the id range holds.

## `oldestPostDate` (type: `string`):

Channels: only posts published on or after this date (2026-11-01), or a relative time (7 days). The walk stops at the first older post.

## `newestPostDate` (type: `string`):

Channels: only posts published on or before this date (the whole day counts).

## `fromPostId` (type: `integer`):

Channels: only posts with this id or a higher one (the number at the end of a post link). With the id of the newest post you already have + 1, a run reads only the newer posts.

## `toPostId` (type: `integer`):

Channels: only posts with this id or a lower one; the walk starts there.

## `maxCommentsPerPost` (type: `integer`):

The most comments delivered for one post, newest first; 0 = the whole thread, read to its end. The post's row says whether its comments were all read (COMPLETE), the list ended under Telegram's count (LIST_END), or this cap stopped it (CAPPED).

## `commentsPostedAfter` (type: `string`):

Only comments posted on or after this date (2026-11-01), or a relative time (24 hours, 7 days). Older comments are not delivered and not charged; the walk of a thread stops at the first older page.

## `commentKeywords` (type: `array`):

Only comments whose own text holds one of these words or phrases (any case, any language). Others are not delivered and not charged; each post's row counts them.

## `minCommentReactions` (type: `integer`):

Only comments with at least this many reactions (all emoji together); 0 = every comment.

## `onlyTopLevelComments` (type: `boolean`):

Leave out replies to other comments (not delivered, not charged).

## `minComments` (type: `integer`):

Read only posts with at least this many comments (Telegram's own count, read first for about 3.5 KB a post); a post under it gets a free row and no comment is read. 0 = every post.

## `detectLanguage` (type: `boolean`):

Name each comment's language (an ISO 639-1 code such as ru, en, uk) from its text of 20 letters or more; null when the text is shorter or the language is not clear. Off by default: the detection takes the run's processor about as long as reading the comments.

## `maxItems` (type: `integer`):

The most charged comments of the whole run; 0 = no cap beyond your charge limit. Post, channel and status rows are free and do not count.

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "postUrls": [
    "https://t.me/tginfo/4437"
  ],
  "channels": [
    "tginfo"
  ],
  "maxPostsPerChannel": 3,
  "maxCommentsPerPost": 20,
  "commentKeywords": [],
  "minCommentReactions": 0,
  "onlyTopLevelComments": false,
  "minComments": 0,
  "detectLanguage": false,
  "maxItems": 50
}
```

# Actor output Schema

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

All scraped records in the default dataset. One `comment` row per comment (charged), one free `post` row per post read (its own fields, its comment count, the comments delivered and the read's verdict), one free `channel` row per channel you gave, and one free `input` row for a value that names nothing readable (`record_type` says which):

## `runSummary` (type: `string`):

How the run went: comments charged, free rows by status, each post's verdict, each input's summary, and the source counters (requests, exits, cached copies read again, second reads of a thread's end).

# 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 = {
    "postUrls": [
        "https://t.me/tginfo/4437"
    ],
    "channels": [
        "tginfo"
    ],
    "maxPostsPerChannel": 3,
    "maxCommentsPerPost": 20,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hyperbach/telegram-scraper").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 = {
    "postUrls": ["https://t.me/tginfo/4437"],
    "channels": ["tginfo"],
    "maxPostsPerChannel": 3,
    "maxCommentsPerPost": 20,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hyperbach/telegram-scraper").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 '{
  "postUrls": [
    "https://t.me/tginfo/4437"
  ],
  "channels": [
    "tginfo"
  ],
  "maxPostsPerChannel": 3,
  "maxCommentsPerPost": 20,
  "maxItems": 50
}' |
apify call hyperbach/telegram-scraper --silent --output-dataset

```

## MCP server setup

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

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/2er0sed8QxIdOLTVW/builds/o4e45v9IDYif00ASZ/openapi.json
