Skip to Content
MosaicMosaicDocs
Tool Reference

ReadChannelMessageContext

Read the local channel and thread context around one message id.

Starter documentation. Features and account details may differ from this deployment.

ReadChannelMessageContext

Read the local channel and thread context around one message id. If the id is a thread reply, this resolves the parent, returns nearby top-level channel messages, and returns nearby replies around the anchor reply.

Parameters

ParameterTypeRequiredDescription
channelIdstringYesChannel id containing the message.
messageIdstringYesMessage id to anchor the context. May be top-level or a thread reply.
channelBeforeintegerNoApproximate number of older top-level messages to include. Defaults to 3.
channelAfterintegerNoApproximate number of newer top-level messages to include. Defaults to 3.
threadBeforeintegerNoNumber of replies before a reply anchor to include. Defaults to 10, maximum 50.
threadAfterintegerNoNumber of replies after a reply anchor to include. Defaults to 10, maximum 50.
maxCharsPerMessageintegerNoMaximum characters to return per message/reply. Defaults to 4000, maximum 16000.

On this page