List files in a chat
telegram_list_filesLists media and files in a Telegram chat, newest first, returning message ids, kind, size and file name for download; supports paging with a cursor.
Instructions
Lists the messages of a chat that carry media or files, newest first, with message id, kind, size and file name. The message id is what telegram_download_media takes. When the page is full the result has 'next_cursor'; pass it back as 'cursor' for more.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat": "<chat>"
},
"name": "telegram_list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | The chat: 'me' for Saved Messages, an @username, or a numeric chat id as listed by telegram_list_chats. Invite links are not accepted. | |
| kind | No | Which files to list. | all |
| limit | No | How many files to return. | |
| cursor | No | The 'next_cursor' of the previous page, to continue after it. |