Skip to content

add direct download support for channels, groups, and topics#1233

Open
owbryd wants to merge 1 commit into
iyear:masterfrom
owbryd:master
Open

add direct download support for channels, groups, and topics#1233
owbryd wants to merge 1 commit into
iyear:masterfrom
owbryd:master

Conversation

@owbryd

@owbryd owbryd commented May 15, 2026

Copy link
Copy Markdown

Summary

This PR adds support for downloading all media and messages from a Telegram channel, group, or topic directly using the --chat flag, without requiring a prior message export step.

What gets downloaded

  • Media files — all attachments (photos, videos, documents, etc.)
  • Text messages — saved as an .html file for easy reading

New flags

Flag Description
--chat <id> Target channel or group ID
--topic <id> Target a specific topic within a group
--msg-start <id> Start of message range (optional)
--msg-end <id> End of message range (optional)

Usage & Examples

Download everything from a channel or group:

tdl dl --chat <chat_id>

# Example
tdl dl --chat 8493874389

Download everything from a specific topic:

tdl dl --chat <chat_id> --topic <topic_id>

# Example
tdl dl --chat 8493874389 --topic 9383

Optional: limit by message range:

tdl dl --chat <chat_id> --msg-start <start_id> --msg-end <end_id>

# Example (messages 100 to 500)
tdl dl --chat 8493874389 --msg-start 100 --msg-end 500

@owbryd owbryd requested a review from XMLHexagram as a code owner May 15, 2026 14:26
fovndxtion added a commit to fovndxtion/tdl that referenced this pull request May 25, 2026
This feature added as is from PR:
iyear#1233

Thanks to owbryd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant