Skip to content

Search media on the server, beyond the cached history #105

Open

Description

@neoromantic

tg messages search reads only the local cache. Files in chats that aren't synced, or older than the synced history, can't be found.

Proposed:

  • tg media search --chat <peer> --type document|photo|video|voice|music|link [--query <text>] calls messages.search with a media filter and returns messages with their attachment metadata. Results are cached like tg messages list --fresh.
  • Without --chat, a global search (messages.searchGlobal) where the filter allows it.

Done when e2e tests with a mocked client cover each filter and a live check finds a file in Saved Messages.

Activity

  1. added
    enhancement
    on Oct 28, 2026
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