8000 Releases · dfwdfq/DCT · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: dfwdfq/DCT

1.0

29 May 12:30
3ea13b9
Compare
Choose a tag to compare

Telegram Channel Dumper (dtc)
A CLI tool to list and dump Telegram channel data, including messages, replies, and attached photos.

✨ Key Features

  • List channels: View all joined Telegram channels interactively.
  • Dump channels: Save full message history, replies, and photos to disk.
  • Media support: Automatically download attached images to a specified folder.
  • Session reuse: Avoid re-login by reusing existing .session files.
  • Structured output: Messages saved in JSONL format for easy parsing.
  • Rate limiting: Built-in delays to respect Telegram API limits.

⚙️ Usage Example

./dtc.py <api_id> <api_hash> --session my_session --media media --output output.jsonl  
>> list  
>> dump 0  # Dumps the first channel in the list

📦 Requirements

  • Python 3.8+
  • telethon, pandas, tabulate (install via pip install -r requirements.txt)

🛡️ Notes

  • Supports session management to avoid repeated logins.
  • Handles FloodWaitError gracefully with retry logic.
  • Stores media in organized paths: media/{channel_id}_{msg_id}.jpg.

Perfect for archiving, analysis, or backup of Telegram channel data.

0