tock / ai.tock.bot.engine / Bus / withMessage

# withMessage

`open fun withMessage(message: ConnectorMessage): T` (source)
`abstract fun withMessage(connectorType: ConnectorType, messageProvider: () -> ConnectorMessage): T` (source)

Adds the specified ConnectorMessage to the bus context if the targetConnectorType is compatible.

`abstract fun withMessage(connectorType: ConnectorType, connectorId: String, messageProvider: () -> ConnectorMessage): T` (source)

Adds the specified ConnectorMessage to the bus context if the targetConnectorType and connectorId is compatible.