tock / ai.tock.bot.connector.messenger / sendToMessenger

sendToMessenger

fun <T : Bus<T>> T.sendToMessenger(delay: Long = defaultDelay(currentAnswerIndex), messageProvider: T.() -> MessengerConnectorMessage): T (source)

Sends a Messenger message only if the ConnectorType of the current Bus is messengerConnectorType.