# Telegram Channel Messages Scraper

**Use case:** 

Scrape public Telegram channel messages, views, links, dates, media flags, and metadata from t.me/s pages into datasets.

## Input

```json
{
  "channels": [
    "telegram",
    "durov"
  ],
  "startUrls": [
    {
      "url": "https://t.me/s/telegram"
    }
  ],
  "maxMessages": 100,
  "maxPagesPerChannel": 10,
  "includeHtml": false,
  "useProxy": false
}
```

## Output

```json
{
  "channelHandle": {
    "label": "Channel"
  },
  "channelTitle": {
    "label": "Title"
  },
  "messageId": {
    "label": "Message ID"
  },
  "messageUrl": {
    "label": "Message URL",
    "format": "link"
  },
  "date": {
    "label": "Date"
  },
  "text": {
    "label": "Text"
  },
  "views": {
    "label": "Views"
  },
  "forwards": {
    "label": "Forwards"
  },
  "replies": {
    "label": "Replies"
  },
  "hasMedia": {
    "label": "Has media"
  },
  "mediaType": {
    "label": "Media type"
  },
  "linkPreviewUrl": {
    "label": "Preview URL",
    "format": "link"
  },
  "links": {
    "label": "Links"
  },
  "scrapedAt": {
    "label": "Scraped at"
  }
}
```

## About this Actor

This example demonstrates how to use [Telegram Channel Messages Scraper](https://apify.com/automation-lab/telegram-channel-messages-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/telegram-channel-messages-scraper) to learn more, explore other use cases, and run it yourself.