Anandsinghsarkar's picture
|
download
raw
4.22 kB
---
configs:
- config_name: messages
data_files: messages/*.parquet
- config_name: channels
data_files: channels/*.parquet
---
# Media monitoring: Telegram snapshot
A snapshot of the Telegram side of the [media-monitoring](https://github.com/mahmudvibecoding/media-monitoring)
database, taken on October 20, 2026 at 09:38 UTC, after the collector read the channels' histories back to their first messages. It covers
294,408 public Telegram channels in Uzbek (265,711), Russian (23,408) or English (5,289), as CLD2 finds their
language, and 469,305,126 of their messages, the oldest from September 22, 2015: those with text, a message's own text or the
caption of its photo, video or album. They were read from Telegram's public web pages (`t.me/s/<username>`).
The YouTube side is in [mahmudnosirov/media-monitoring](https://huggingface.co/datasets/mahmudnosirov/media-monitoring).
## Tables
Each table is a folder of Parquet files; on the Hub, each one is a subset in the viewer.
### `channels`
The biggest first.
| Column | Type | Notes |
|---|---|---|
| `channel_id` | int64 | Telegram's ID for the channel, which never changes (lists often write it as -100 and then it) |
| `username` | string | without the @: the channel is at `https://t.me/<username>` |
| `title` | string | |
| `description` | string | up to 255 characters, Telegram's limit |
| `subscriber_count` | int64 | exact below 1,000; above, rounded to three digits, as the public page shows it (1.14M) |
| `photo_url` | string | the channel's photo (160 × 160) on Telegram's image server; empty without one |
| `language` | string | the channel's main language, as CLD2 finds it in its title, description and messages: `uz`, `ru` or `en`, or `uz-Arab` for Uzbek in Arabic script |
| `last_message_id` | int32 | the number of the newest message seen (an album's last item) |
| `last_message_at` | timestamp (UTC) | when it came out |
| `history_from` | int32 | how far back the channel's messages were read: 0 once its first message was reached, else the oldest message read (text or not); empty when only its newest messages were read |
293,986 channels have all their text messages here (`history_from` is 0). For 305, the messages from `history_from`
on: their page could not be read further (Telegram hid it from every proxy, or its username now belongs to another
channel); for 117, only their newest.
### `messages`
In order, by channel and then by number, across all 128 files (48 GB): file names sort in the order of their
rows, and a channel's messages are never split between two files, so a reader that wants one channel reads only its
part.
| Column | Type | Notes |
|---|---|---|
| `channel_id` | int64 | |
| `message_id` | int32 | its number in its channel: the message is at `https://t.me/<username>/<message_id>` |
| `published_at` | timestamp (UTC) | to the second |
| `text` | string | as plain text; a link hidden behind words has its address after them, in parentheses |
| `first_seen_at` | timestamp (UTC) | when the collector first saved it |
Only messages with text: service notices, stickers, voice messages and media without a caption aren't kept, nor views,
reactions, replies or edits. An album is one row, under its first item's number.
## Reading it
With the `datasets` library:
```python
from datasets import load_dataset
messages = load_dataset("mahmudnosirov/media-monitoring-telegram", "messages", split="train")
```
With DuckDB, which reads only the columns and files a query needs:
```sql
CREATE SECRET (TYPE huggingface, PROVIDER credential_chain); -- your Hugging Face login, if the dataset is private
-- The channels with the most messages
SELECT c.username, count(*) AS messages
FROM 'hf://datasets/mahmudnosirov/media-monitoring-telegram/messages/*.parquet' AS m
JOIN 'hf://datasets/mahmudnosirov/media-monitoring-telegram/channels/*.parquet' AS c USING (channel_id)
GROUP BY c.username ORDER BY messages DESC LIMIT 10;
-- One channel's newest messages: the files are in order, so only its part is read
SELECT message_id, published_at, text
FROM 'hf://datasets/mahmudnosirov/media-monitoring-telegram/messages/*.parquet'
WHERE channel_id = 1001766948 ORDER BY message_id DESC LIMIT 20;
```

Xet Storage Details

Size:
4.22 kB
·
Xet hash:
b305d8e0d5daf22e467ee855ec44fe5338c08849112a578ed3c7f72b2c2e94e6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.