What You Can Do
| Capability | Endpoint | Description |
|---|---|---|
| Track Group | POST /track/telegram | Monitor a Telegram group or channel |
| Get Source | GET /track/telegram | Retrieve a tracked Telegram source |
| Delete Tracking | DELETE /track/telegram | Stop tracking a Telegram source |
| Backfill | PUT /backfill | Trigger historical message backfill |
| History | GET /account/history/:id | Retrieve backfilled historical messages |
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:
| Field | Type | Description |
|---|---|---|
mid | number | Message ID — the Telegram message ID |
sid | string | Source ID — the Telegram chat/channel ID |
source | string | "telegram" |
timestamp | number | Unix timestamp (ms) when the event was received |
payload | object | Raw Telegram message object |
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