Skip to content

Download many attachments at once, with name templates #104

Open

Description

@neoromantic

tg media download (#22) takes one message at a time.

Proposed:

  • Several --id values, or filters: --chat, --type photo|video|voice|audio|document|..., --since, --until, --limit.
  • Progress on stderr and one JSON line per file on stdout. Partial files resume, and files already in the media cache are skipped.
  • --out <dir> with a name template such as {chat}/{date}_{id}_{name}, with names that are safe on every OS. Defaults in config.json.

Done when e2e tests with a mocked client cover the filters, resuming and templates, and a short live run downloads several files from Saved Messages.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions