publ betaReference (MCP guide)
Open publ console

publ Reference

messenger_promotion_get

Read the Send to All screen of the Messenger app (pApp D00003, promotion extension Z00003) before sending one text or image (a completed messenger_media_upload_apply task for the promotion) to all channel members: the member count, this month's usage and your author profile [str_8367, str_7455]. Returns a revision. Sends nothing.

Inputs

Field Required here Contract
target Yes one of: TEXT, IMAGE, RECORD (by messageType)
target.text Yes When target.messageType is TEXT: string; min length 1; max length 1000
target.mediaTaskId Yes When target.messageType is IMAGE: string; pattern ^[A-Za-z0-9_-]{8,80}$
target.mediaTaskId Yes When target.messageType is RECORD: string; pattern ^[A-Za-z0-9_-]{8,80}$