invoke

suspend operator fun invoke(text: String, contactKey: String = "0", replyId: Int? = null)(source)

Executes the send message workflow.

Parameters

text

The plain text message to send.

contactKey

The identifier of the target contact or channel (e.g., "0!ffffffff" for broadcast).

replyId

Optional ID of a message being replied to.