tock / ai.tock.bot.connector.messenger / endForMessenger

endForMessenger

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

Sends a Messenger message as last bot answer, only if the ConnectorType of the current Bus is messengerConnectorType.