messenger_media_delivery_apply
Send one prepared image, attachment or encoded video to a direct or basic group room of the Messenger app (pApp D00003), as the room attach menu does. Requires change {confirmation SEND_CHAT_MEDIA}. The preview leads with the recipient count; a changed count refuses the send. A sent message cannot be recalled. When sending cannot run here, the answer is MESSAGING_DELIVERY_CONSOLE with the room on the console (consoleUrl), and nothing is sent. The preview never sends. A lost receipt stays pending and is never resent; task_resume only observes, and prepared work needs the identical apply. Called without confirmToken it previews and returns a confirmToken; repeating the same input with it executes once.
Inputs
| Field | Required here | Contract |
|---|---|---|
target |
Yes | object |
target.roomUuid |
Yes | string; pattern ^[A-Za-z0-9_-]{1,200}$ |
target.roomType |
Yes | DIRECT, GROUP |
target.messageType |
Yes | IMAGE, ATTACHMENT, VIDEO, RECORD |
target.mediaTaskId |
Yes | string; pattern ^[A-Za-z0-9_-]{8,80}$ |
change |
Yes | object |
change.confirmation |
Yes | SEND_CHAT_MEDIA |
confirmToken |
No | string; pattern ^ct[a-f\d]{32}$; The confirmToken from this tool's preview result. Omit it to preview; repeat the same input with it to execute. |