📨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.

1.7 (3)

Pricing

Pay per event

3

26

26

Last modified

an hour 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_filesstringFile 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 Files Options:

  • "none": 🚫 No file downloads
  • "photo": 📸 Photos only
  • "all": 📂 All files (photos, 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/binance_announcements",
"download_files": "photo",
"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
viewsintegerNumber of views for the message
forwardsintegerNumber of times message was forwarded
repliesintegerNumber 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_to_idintegerID of message this is replying to
grouped_idintegerMessages with same grouped_id belong to album
forward_detailsobjectDetails about message forwarding

Service Actions

FieldTypeDescription
service_actionstringService message action type (e.g., chat_add_user, pin_message)

Media Content

FieldTypeDescription
filestringEmpty string (no file), file type (photo, image/jpeg), or file URL

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,
"views": 15420,
"forwards": 847,
"replies": 156,
"reactions": {
"🚀": 234,
"🔥": 189,
"💎": 78,
"📈": 145
},
"service_action": null,
"forward_details": {
"date": "2024-01-15T14:20:15.000Z",
"from_id": 1234567890,
"from_name": "Crypto News Daily",
"message_id": 1250
},
"reply_to_id": 2845,
"grouped_id": null,
"file": "https://apify.com/storage/kv/photo_2847_1642251625.jpg"
}

Supported Platforms

  • Public Channels: Full access to all public Telegram channels with complete message history
  • Public Groups: Access to public group discussions with full conversation context
  • Broadcast Channels: Extract from news channels, announcement channels, and media channels