# telegram.post

One post of a public Telegram channel: text, links, photos and videos, views, reactions and time.

Telegram post, one of the Telegram scrapers.

| | |
| --- | --- |
| Id | `telegram.post` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/telegram.post/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The post's address, e.g. https://t.me/durov/418. Limit: at most 2048 characters. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `id` | integer | The post's number in its channel. |
| `channel` | string | The channel's name, without the @. |
| `url` | string | The post's address. |
| `text` | string or null | The post's text as written, line breaks kept. Null for a post without text. |
| `links` | array of string | The addresses the text links to, in order, without repeats. |
| `created_at` | string (date-time) or null | When the post was published, in UTC. |
| `edited` | boolean | True when the channel edited the post after publishing it. Default: `false`. |
| `view_count` | integer or null | Number of views. Telegram prints large counts rounded: 77.2K is returned as 77200. |
| `author_signature` | string or null | The name the post is signed with, on channels that sign their posts. |
| `forwarded` | boolean | True when the post was forwarded from somewhere else. Default: `false`. |
| `forwarded_from` | string or null | The name of the channel or person a forwarded post came from; null when Telegram's page does not name it. |
| `forwarded_from_author` | string or null | The name the original post was signed with, when the page shows one. |
| `forwarded_from_url` | string or null | The address of the original post or channel, when Telegram links it. |
| `reply_to_post_id` | integer or null | The number of the post in the same channel this one replies to, when it replies to one. |
| `media` | array of object | The post's photos, videos and files, in order. An album's items are all here. |
| `media[].type` | "photo" \| "video" \| "voice" \| "audio" \| "document" | photo, video, voice (a voice message), audio (a music or podcast file) or document (any other file). |
| `media[].url` | string or null | The photo, or the video or voice file. Null for a file Telegram's web preview does not serve: audio, documents and long videos. |
| `media[].thumbnail_url` | string or null | The still image shown for a video. |
| `media[].duration_s` | integer or null | Length of a video or voice message in seconds, when the page states it. |
| `media[].title` | string or null | The name of a file, or the title of an audio track. |
| `media[].details` | string or null | The line under a file's name: its size, or an audio track's performer. |
| `link_preview` | object or null | The preview card of a link in the post, when it shows one. |
| `link_preview.url` | string | The address the preview card leads to. |
| `link_preview.site_name` | string or null | The site's name as the card shows it. |
| `link_preview.title` | string or null | The card's title. |
| `link_preview.description` | string or null | The card's text. |
| `link_preview.image_url` | string or null | The card's image. |
| `reactions` | array of object | The reactions under the post, in the order Telegram shows them. |
| `reactions[].emoji` | string or null | The reaction's emoji; a star for paid reactions. Null for a custom emoji. |
| `reactions[].custom_emoji_id` | string or null | Telegram's id of a custom emoji, when the reaction is one. |
| `reactions[].count` | integer | How many times it was given. Telegram prints large counts rounded (1.2K is returned as 1200). |
| `buttons` | array of object | The link buttons under the post, in order. |
| `buttons[].text` | string | The button's label. |
| `buttons[].url` | string or null | Where the button leads. |
| `service_message` | boolean | True for a notice Telegram writes itself, such as 'Channel created' or a pinned-post notice. Default: `false`. |
| `fetched_at` | string (date-time) | When the page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/telegram.post/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://t.me/telegram/452"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "telegram.post",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "url": "https://t.me/telegram/452"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "id": 452,
      "channel": "telegram",
      "url": "https://t.me/telegram/452",
      "text": "Ephemeral Bot Messages. You can now send private commands to bots in group chats and receive replies that are only visible to you.\n\nJuly Features\n1 • 2 • 3 • 4 • More",
      "links": [
        "https://t.me/telegram/450",
        "https://t.me/telegram/451",
        "https://t.me/telegram/453"
      ],
      "created_at": "2026-07-19T17:57:31Z",
      "edited": false,
      "view_count": 1490000,
      "author_signature": null,
      "forwarded": false,
      "forwarded_from": null,
      "forwarded_from_author": null,
      "forwarded_from_url": null,
      "reply_to_post_id": null,
      "media": [
        {
          "type": "photo",
          "url": "https://cdn1.telesco.pe/file/mefp7BXaweTswKeoYKvEc0tRbt7w_gJF9EmQQYBeigMui0jv31x8ZcP1YM8ez0GlLveortc8ymXFsnDm87yoYPPY2gjj6Ie9Jkk1IvokHpqMoi68PtquQXuoEZ2oIbY03qC5WLUVqeT0AK6Jz1uXV5VsBbTVdU9ekodp_YczzK1sjIk7uG05U5xMi2i8X0-TAGpCnu3gKrKd5QIZmazwLQ1YjwoWfhOdqJVafTkkFdRi-6hr33f3cVj4blkp3BEtC6cN3O_YfLce0uViFj3Q9jJ21h25HK_yMiFQAkDlOjg2mcm9E1HCGt8hLeGGmJPNMquG9VZUpNmdsodim5qwUw.jpg",
          "thumbnail_url": null,
          "duration_s": null,
          "title": null,
          "details": null
        }
      ],
      "link_preview": null,
      "reactions": [],
      "buttons": [],
      "service_message": false,
      "fetched_at": "2026-11-19T18:07:41.409640Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `links`: 4 items, the first 3 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Telegram scrapers](https://docs.enrichednow.com/results-and-statuses.md#telegram) are in their own section there.
