What You Can Do
Track a Telegram Group
Start receiving real-time messages from any Telegram group or channel.202 Accepted status along with a jobId:
Check Tracking Status
You can poll the status endpoint to know when the tracking process completes and to get the internal ID (src_...) of the source.
You’ll need the
id from the returnValue (src_456 in this example) if you
want to run historical backfills for this group later.Search Messages & Users
Search for messages matching a keyword globally or within specific channels. You can also search for Telegram users and channel participants.Backfill History
Retrieve historical messages from tracked Telegram groups.In the examples below,
src_456 is the internal ID of the Telegram
group/channel whose historical data you want to pull. This is the same id
returned when you created the tracking via POST /track/telegram.Download Media
You can download media attached to a Telegram message using the channel ID and message ID. This endpoint returns the raw file buffer with appropriateContent-Type headers and is aggressively rate-limited to 2 requests per minute to prevent abuse.
Webhook Payload
When a tracked Telegram group receives a message, your webhook receives aSourceEvent object. This is the exact shape sent via JSON.stringify to your webhook URL:
Telegram photos are not public URLs — each
images entry points at the media
proxy (https://scrape.st/telegram/media/{channelId}/{messageId}), which
downloads the photo on demand. Only MessageMediaPhoto is included; videos
and documents are omitted.Delivery Methods
Telegram data is delivered through all the same channels as X:- Webhooks — Push to your endpoint
- WebSocket — Real-time bidirectional stream
- SSE — Server-sent events with auto-reconnect
API Reference
All tracking endpoints use/track/:source where :source is x, telegram, or discord.
- Create Tracking —
POST /track/telegram - List Tracked Sources —
GET /track/telegram - Delete Tracking —
DELETE /track/telegram - Trigger Backfill —
PUT /backfill - Backfill Status —
GET /backfill/status - Get History —
GET /account/history/:id
Telegram Queries
- Global Search —
GET /telegram/search - Search Users —
GET /telegram/users/search - Search Channel Messages —
GET /telegram/channel/:channelId/search - Search Participants —
GET /telegram/channel/:channelId/participants/search - Search Media by Type —
GET /telegram/channel/:channelId/type/:type/search - Download Media —
GET /telegram/media/:channelId/:messageId