📨Telegram Message (Photo & Video Downloader) avatar
📨Telegram Message (Photo & Video Downloader)

Pricing

Pay per event

Go to Apify Store
📨Telegram Message (Photo & Video Downloader)

📨Telegram Message (Photo & Video Downloader)

Developed by

NextAPI

NextAPI

Maintained by Community

Unlock valuable insights from Telegram groups and channels. Our advanced scraper captures messages, photos, and videos with comprehensive metadata for research purposes.

3.3 (4)

Pricing

Pay per event

4

31

25

Last modified

10 days ago

Telegram Message

A powerful Telegram message extraction API that aggregates data from any public Telegram channel or group, providing comprehensive message content, engagement metrics, and media downloads in a unified format.

This Actor streamlines Telegram data collection by extracting complete message information including text content, metadata, engagement statistics, service actions, and media files through a single, efficient API endpoint.

Key Features

  • Multi-Channel Support: Extract data from any public Telegram channel or group
  • Complete Message Data: Full message content including text, metadata, timestamps, and sender information
  • Engagement Analytics: Comprehensive engagement metrics with views, forwards, replies, and reaction data
  • Media Downloads: Automatic photo and media file downloads with direct storage links
  • Service Action Tracking: Monitor channel events like user joins, admin actions, and channel updates
  • Advanced Date Filtering: Flexible date filtering with both relative and absolute date ranges
  • Real-time Processing: Fast batch processing with concurrent message extraction
  • Multiple Output Formats: Export data in JSON, CSV, Excel, or any preferred format

Configuration

Required Parameters

ParameterTypeDescription
telegram_targetstringTelegram channel or group URL/username to scrape
download_mediasstringFile download preference for message media content

Telegram Target Examples:

  • Username format: "@channel_name", "group_name"
  • Share link format: "t.me/channel_name"
  • Full URL format: "https://t.me/channel_name"

Download Medias Options:

  • "text": 📄 Text only (no media downloads)
  • "image": 📸 Text + Images
  • "all": 🎬 Text + All media files (images, videos, documents)

Optional Parameters

ParameterTypeDescription
start_datestringExtract messages from this date onwards (UTC format)

Start Date Examples:

  • ISO format: "2024-01-01", "2024-01-01T12:00:00Z"
  • Relative dates: "7 days", "2 weeks", "1 month"
  • Leave empty for all available messages

Usage Example

{
"telegram_target": "https://t.me/binanceexchange",
"download_medias": "image",
"start_date": "7 days"
}

Data Output

The Actor returns an array of message objects with comprehensive information from the target Telegram channel or group. Output is available in multiple formats including JSON, CSV, Excel, and more.

Data Fields

Message Core Data

FieldTypeDescription
idintegerTelegram message unique identifier
typestringType of message (regular, service, etc.)
dateISO dateISO formatted timestamp when message was sent
textstringText content of the message
senderstringUsername or name of message sender

Engagement Metrics

FieldTypeDescription
view_countintegerNumber of views for the message
forward_countintegerNumber of times message was forwarded
reply_countintegerNumber of replies to the message
reactionsobjectMessage reactions (emoji to count mapping)

Message Properties

FieldTypeDescription
silentbooleanWhether message was sent silently
pinnedbooleanWhether message is pinned

Context Information

FieldTypeDescription
reply_tointegerID of message this is replying to
album_idintegerMessages with same album_id belong to album
forward_infoobjectDetails about message forwarding

Service Actions

FieldTypeDescription
service_typestringService message action type (e.g., chat_add_user, pin_message)
service_infostringAdditional information about the service action

Media Content

FieldTypeDescription
media_urlstringDownloaded media file URL from Apify storage, or empty string if no media

Source Information

FieldTypeDescription
source_idintegerUnique identifier of the channel or group where message was extracted
source_namestringName of the channel or group where message was extracted from
source_typestringType of the source (Channel, Group, etc.)

Processing Information

FieldTypeDescription
topic_namestringName of the forum topic (if message is in a forum topic)
processorstringIdentifier of the processing system that extracted this message
processed_atstringISO formatted timestamp when the message was processed

Example Output

{
"id": 2847,
"type": "regular",
"date": "2024-01-15T14:23:45.123Z",
"text": "🚀 BREAKING: New cryptocurrency listing announcement! Trading starts tomorrow at 12:00 UTC. Get ready for the next big opportunity! #Crypto #Trading",
"sender": "@crypto_announcements",
"silent": false,
"pinned": false,
"view_count": 15420,
"forward_count": 847,
"reply_count": 156,
"reactions": {
"🚀": 234,
"🔥": 189,
"💎": 78,
"📈": 145
},
"service_type": null,
"service_info": null,
"forward_info": {
"date": "2024-01-15T14:20:15.000Z",
"from_id": 1234567890,
"from_name": "Crypto News Daily",
"message_id": 1250
},
"reply_to": 2845,
"album_id": null,
"media_url": "https://apify.com/storage/kv/photo_2847_1642251625.jpg",
"source_id": 1234567890,
"source_name": "Binance",
"source_type": "Channel",
"topic_name": null,
"processor": "https://apify.com/nextapi/telegram-message",
"processed_at": "2024-01-15T14:24:00.000Z"
}