{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "themyxa-telegram-parser--export-channel-comments-to-json",
 "repo": "TheMyxa/telegram-parser",
 "repo_url": "https://github.com/TheMyxa/telegram-parser",
 "repo_slug": "themyxa-telegram-parser",
 "title": "Export a Telegram channel's posts and comments to JSON",
 "page_title": "How to export a Telegram channel's posts and comments to JSON with Telegram Parser",
 "summary": "Pull posts, discussion comments, and reactions from your channel into a local JSON file for analysis.",
 "who": "A community manager or analyst who needs a full local copy of a channel's discussion for review or reporting.",
 "problem": "Comment threads and reactions in Telegram are hard to analyze in the app and cannot be filtered or summarized offline.",
 "outcome": "A dated JSON export in data/raw that the dashboard can open and that other tools can read.",
 "steps": [
  "Get `API_ID` and `API_HASH` at `https://my.telegram.org/apps`.",
  "Run `docker compose up --build` once so Docker creates `.env` from `.env.example`.",
  "Open `http://localhost:9595`, then fill in the Telegram settings in the Export tab.",
  "Run `docker compose run --rm cli export json` to start the export from the command line.",
  "Open the new file under `data/raw/` in the dashboard."
 ],
 "agent_prompt": "In the TheMyxa/telegram-parser repo, configure .env with API_ID, API_HASH, CHANNEL set to <channel-username>, and TELEGRAM_SESSION, then run `docker compose run --rm cli export json`. Expected output is a new JSON file in data/raw/. Verify the file exists and contains a list of posts before reporting success.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Live exports need your own Telegram account session, and the README does not describe how the session file is created.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Docker Desktop (recommended) or Python with the packages in requirements.txt",
  "Telegram API credentials: API_ID and API_HASH from https://my.telegram.org/apps",
  "A Telegram account session for Telethon, needed only for live exports"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The export needs your Telegram API_HASH and a Telethon session file, so keep .env and the sessions folder private and out of shared repos."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/themyxa-telegram-parser/export-channel-comments-to-json/",
 "md": "https://dedupedai.com/use-cases/themyxa-telegram-parser/export-channel-comments-to-json/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/themyxa-telegram-parser--export-channel-comments-to-json.json",
 "api_version": "v1"
}
