search_files
Find files shared in Telegram chats by media type, date, or keyword. Search globally or within one chat to get matching message IDs, filenames, sizes, captions, and senders.
Instructions
Find messages carrying files, globally or in one chat.
file_type: "document" (general files/PDFs), "photo", "video", "audio" (Telegram
music/audio files only — voice notes and video notes are excluded), or "any".
since_date: optional ISO 8601 cutoff (e.g. "2026-01-01"). Results default to
the last 7 days when omitted. Pass an explicit date to look further back; a very
old date effectively means all history. A value with no timezone is treated as UTC.
Same global-search caveat as search_messages: results are scanned dialog-by-dialog,
not ranked account-wide. Returns per match: message id, chat id/title, date,
filename, mime_type, size_bytes, caption, sender_name, media_type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | ||
| limit | No | ||
| query | No | ||
| file_type | No | document | |
| since_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |