Для AI-агентов: markdown этой страницы — /docs/mcp-tool-media-finalize.mdиндекс документации — /llms.txt
media_finalize
Обновлено
Step 2 of 2 — close an upload and get the media references to publish with. PREREQUISITE: every declared byte was PUT to its returned write-once URL. Returns one media item (with its `media_ref`) per file that actually landed — pass those verbatim as media on a publish tool; they are storage references, not links, and the platform signs a fresh fetchable URL at send time. Also returns `album_sendable`: when false the files cannot travel as ONE Telegram album (only photos and videos mix; documents ride alone) and must be published separately. And `mass_send_ready` with `mass_send_state`: a file for a broadcast or a reply batch to many customers must be ready first — `preparing` means a large file is being prepared once, poll media_get_status(upload_id) until mass_send_ready is true; `unavailable` means it could not be prepared for now: send again in about an hour without uploading the same file again, and if it keeps failing check that the Open Lines group is connected. Fails if nothing was uploaded.
Права и условия
required_scopes: ALL.
| Поле | Значение |
|---|---|
| description | "Step 2 of 2 — close an upload and get the media references to publish with. PREREQUISITE: every declared byte was PUT to its returned write-once URL. Returns one media item (with its `media_ref`) per file that actually landed — pass those verbatim as media on a publish tool; they are storage references, not links, and the platform signs a fresh fetchable URL at send time. Also returns `album_sendable`: when false the files cannot travel as ONE Telegram album (only photos and videos mix; documents ride alone) and must be published separately. And `mass_send_ready` with `mass_send_state`: a file for a broadcast or a reply batch to many customers must be ready first — `preparing` means a large file is being prepared once, poll media_get_status(upload_id) until mass_send_ready is true; `unavailable` means it could not be prepared for now: send again in about an hour without uploading the same file again, and if it keeps failing check that the Open Lines group is connected. Fails if nothing was uploaded." |
| domain | "content" |
| name | "media_finalize" |
| platform_version | "1.0.34" |
| required_scopes | ["content:write"] |
| risk | "write" |
| scope | "content:write" |
| title | "Media Finalize" |