Skip to content

Dataset

Telegram group and channel message datasets for AI training

A Telegram dataset is the message history of the groups, supergroups and channels a business administers and the conversations its bots held with users: messages, replies, forum topics, polls, reactions, media and service messages such as joins and pins. SourceX sources it to a buyer's spec from established businesses that run communities, broadcast channels or bots on Telegram. Each dataset is de-identified and licensed for an agreed permitted use. Channel posts can carry view counts and, where a discussion group is linked, the comment threads under them.

Dataset manifest

Sourced to your spec
What it is
Message histories of business-run Telegram groups, supergroups and channels, plus bot conversations, with replies, topics, polls, reactions and media
Typical systems
Telegram groups, supergroups with forum topics, channels with linked discussion groups, and bots on the Bot API; history taken with Telegram Desktop's chat export
Typical history
Varies by chat; an export covers the messages still in the chat, a bot log only the period since the bot was added
Modality
Message text with typed formatting entities and structured metadata; photos, voice messages, video and files where in scope
Delivery formats
JSONL per chat normalized from result.json or bot update logs; media as files with a manifest of included and skipped items
Preparation
User IDs, names, usernames, phone numbers and links pseudonymized or removed in senders, mentions, forwards and reactions; media reviewed or excluded
Licensing
Scoped per chat, channel or bot and date range; permitted use agreed per license
Availability
Sourced to your spec; supply is not guaranteed and depends on member consent and what each admin can export
TextIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
chatobjectPseudonymous chat ID and the export's chat type, such as private_supergroup, public_channel or bot_chat.
message_idintegerThe message's ID, which is unique only inside its chat, so IDs from two chats can collide.
message_typeenumThe export's type, message or service, with the action for service messages such as invite_members, pin_message or topic_created.
sent_atdatetimeThe message's date, with the edited time where the message was changed.
senderobjectThe export's from_id (a user or channel ID) as a pseudonym, the actor for service messages and the author signature on channel posts.
text_entitiesarrayThe message's text_entities: typed runs such as plain, bold, mention, text_link, bot_command, hashtag and custom_emoji.
reply_to_message_idintegerThe message this one replies to in the same chat, which builds reply chains and comment threads.
topicobjectThe forum topic the message sits in. The export names topics only in topic_created and topic_edit service messages, while a bot's log carries a message_thread_id.
forwardobjectThe export's forwarded_from and forwarded_from_id source as a pseudonym, and the original channel post ID where the capture route provides it.
mediaobjectThe export's photo path, or the media_type and file path for stickers, voice messages, video and audio, with mime type and dimensions and a status of included, over size limit or not included.
pollobjectA poll's question, closed flag, total voters and answers with vote counts.
reactionsarrayReaction counts per emoji or custom emoji; the export's list of recent reactors is removed.
post_statsobjectFor channel posts, the views, forwards and replies counters from Telegram's API, with the time and route of the reading.
discussionobjectFor channel posts, the linked discussion group, the ID of the auto-forwarded copy there, the join method and the comments.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "chat": {
    "id": "chat_c41",
    "type": "public_channel"
  },
  "message_id": 1287,
  "message_type": "message",
  "sent_at": "2025-06-03T09:00:12Z",
  "sender": {
    "from_id": "channel_c41",
    "author": "admin_02"
  },
  "text_entities": [
    {
      "type": "bold",
      "text": "Firmware 4.2 is out."
    },
    {
      "type": "plain",
      "text": " Update from the app and tell us below if pairing still drops. "
    },
    {
      "type": "hashtag",
      "text": "#release"
    }
  ],
  "media": {
    "photo": "photos/photo_1287.jpg",
    "width": 1280,
    "height": 720,
    "status": "included"
  },
  "reactions": [
    {
      "type": "emoji",
      "emoji": "👍",
      "count": 64
    }
  ],
  "post_stats": {
    "views": 5320,
    "forwards": 41,
    "replies": 2,
    "read_at": "2025-06-10T00:00:00Z",
    "route": "telegram_api"
  },
  "discussion": {
    "chat": {
      "id": "chat_g07",
      "type": "public_supergroup"
    },
    "forwarded_copy_id": 9912,
    "join": "channel_post_id",
    "comments": [
      {
        "message_id": 9915,
        "sent_at": "2025-06-03T09:31:05Z",
        "sender": {
          "from_id": "user_5d1"
        },
        "reply_to_message_id": 9912,
        "text_entities": [
          {
            "type": "plain",
            "text": "Updated. Pairing held for an hour, then dropped on the older hub."
          }
        ]
      },
      {
        "message_id": 9921,
        "sent_at": "2025-06-03T10:02:47Z",
        "sender": {
          "from_id": "user_admin_02"
        },
        "reply_to_message_id": 9915,
        "text_entities": [
          {
            "type": "plain",
            "text": "Thanks. Send the hub serial to "
          },
          {
            "type": "mention",
            "text": "@[SUPPORT_BOT]"
          },
          {
            "type": "plain",
            "text": " and we will check the logs."
          }
        ]
      }
    ]
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Model community support at group scale

Customer groups show many people asking at once, peers answering first and admins stepping in.

Learn audience response to broadcast posts

Channel posts joined to their comment threads, views and reactions pair a piece of content with how readers answered it.

Train and test bot dialogue

Stored bot updates hold commands, button presses and free text from real users, and logs that kept the bot's own sends add its replies in order.

Multilingual informal text

Community chats can hold local languages, mixed scripts, stickers and voice messages; specify the languages you need.

Moderation and topic routing

Forum topics, pins, removals and admin replies show how a community is kept on subject.

Use-case guides: Customer support agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Post ID join

Comments tied to their channel post by ID, not by matching text and time.

Dated counters

Views, forwards and reactions each carry the time they were read.

Service messages kept

Joins, leaves, pins and topic events make membership and structure rebuildable.

Media accounted for

Every skipped file is listed with the reason, so missing media is known.

Entities preserved

Formatting, mentions, commands and links stay typed instead of flattened to text.

Complete bot logs

Bot updates stored from the first day, in one schema, with the bot's own replies.

Record timeline

Telegram dataset

This page covers telegram group and channel message histories.Illustrative

A channel and its comments are two chats

Telegram keeps broadcast and conversation apart. A channel is one-way: admins post, subscribers read, and each post carries a view count and a forward counter. Comments do not live in the channel. When a channel has a linked discussion group, which must be a supergroup, every post is automatically forwarded into that group and pinned there, and the comment section under a post is simply the reply thread of the forwarded copy. A dataset of posts and audience response is therefore two message streams from two chats.

The join between them depends on how the history was captured. A channel and a supergroup each number their own messages, so a post and its copy carry unrelated IDs. Telegram's API marks the copy with the channel post's ID in its forward header, and a bot sees it as an automatic forward whose origin names the channel and the message. A Telegram Desktop export of the discussion group records which channel the copy came from, in forwarded_from and forwarded_from_id, and its published schema lists no field for the post's own number. Check a sample. Without that number the join falls back to matching text and time, which breaks on edited posts. Deleting the forwarded copy switches comments off for that post, so some posts have no thread at all.

Counts need the same care. Views, forwards and reactions are counters read at one moment, not a series, so a post captured an hour after publishing and one captured a year later are not comparable. The Desktop export writes no view or forward counts. They come from the Telegram API or the channel's own statistics, so ask which, and when each was read. Edits overwrite too: the export gives a message's latest text and an edited timestamp.

What a bot log holds and what a Desktop export returns

There are two routes to Telegram history and they do not overlap. A bot receives updates only from the moment it is added to a chat. The Bot API has no call that returns earlier messages, and it does not keep undelivered updates for longer than a day, so a bot's record is whatever the business's own code stored at the time, in its own schema. A bot in privacy mode receives only a limited set of group messages, and a bot never sees what other bots post. A store of incoming updates alone may hold only the users' half, so ask whether the code also logged the bot's own replies. Telegram Desktop's export runs from a person's account, so ask too whether any copy of a bot's one-to-one conversations exists beyond that log, and see the stored format before agreeing a spec.

Past history comes from an admin's Telegram Desktop export, run chat by chat, because an account-wide export covers public groups and channels only by the requester's own messages. Each chat yields a result.json with the chat's type, such as private_supergroup or public_channel, and its messages. Joins, pins and topic creation are messages of type service with an action, and ordinary messages carry no topic field, so ask how each message was assigned to its forum topic. The text field is a plain string when a message has no formatting and an array when it has, so parse text_entities, where every run is typed: plain, bold, mention, text_link, bot_command, custom_emoji. A bot stores the same formatting as offsets counted in UTF-16 code units, and the two shapes need normalizing before training.

Media are separate files in folders beside the JSON, and this is where exports go quietly short. The export dialog has per-type checkboxes and a size limit, and a file left out is not flagged as missing. Its path is replaced by a sentence saying the file exceeds the maximum size or was not included. On a sample, count the messages whose file or photo value is such a sentence, by media type. Check also that reactions are present, since the published schema does not list them while current exports write them.

What to check before licensing

  • Check that group members, who are usually customers or the public, agreed to this use, and how members who left or objected are handled.
  • Have the data owner and your counsel read Telegram's terms of service and API terms on collecting and reusing chat content.
  • Ask which route produced each chat: a Telegram Desktop export, a bot's stored updates or the Telegram API.
  • On a sample result.json, count file and photo values that are a skip notice instead of a path, by media type.
  • Ask how comments were joined to channel posts and when views, forwards and reactions were read.
  • Confirm that numeric user IDs, usernames, phone numbers and names are pseudonymized everywhere they occur: senders, mention entities, forwarded_from and reactions.
  • Ask whether voice messages, photos and stickers are in scope, since they can carry faces, voices and third-party artwork.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Can a Telegram bot supply a group's past messages?

No. A bot receives messages only from the time it joins, the Bot API offers no way to read earlier history, and a bot in privacy mode sees only part of what is said. Past history has to come from an admin's Telegram Desktop export of each chat.

Do channel posts come with view counts?

Only if someone captured them. The Telegram Desktop export does not write view or forward counts, so they have to be read through Telegram's API or taken from the channel's statistics. Each count is a snapshot, so ask for the time each post's counters were read.

How are comments matched to the posts they answer?

Through the linked discussion group. Telegram forwards each channel post into that group, and comments are replies in the thread under the forwarded copy. Where the capture carries the original post's ID the join is exact. Otherwise posts and copies are matched on text and time and should be flagged as inferred.

Are photos, voice messages and files included?

Only where they are licensed and were actually exported. The export skips media types the admin did not tick and files above the size limit, leaving a notice in place of the path. Voices and faces identify people, so state which media types you need and expect them to be reviewed or excluded.

How are members' identities removed?

By replacing them in every place Telegram stores them. That means sender IDs and display names, mention entities, the names in forwarded messages, contact cards, links and the recent reactor list on reactions. No method is perfect, so check a sample for names typed inside message text.

Is SourceX affiliated with Telegram?

Telegram is named to identify the system the records come from. That does not imply a partnership with or endorsement by Telegram. The records belong to the business that runs Telegram, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies