tock / ai.tock.bot.engine / Bus / end

# end

`open fun end(i18nText: CharSequence, delay: Long = defaultDelay(currentAnswerIndex), vararg i18nArgs: Any?): T` (source)
`open fun end(i18nText: CharSequence, vararg i18nArgs: Any?): T` (source)

Sends i18nText as last bot answer.

`open fun end(delay: Long = defaultDelay(currentAnswerIndex)): T` (source)

Send previously registered ConnectorMessage as last bot answer.

`open fun end(delay: Long = defaultDelay(currentAnswerIndex), messageProvider: T.() -> Any?): T` (source)

Sends messages provided by messageProvider as last bot answer. if messageProvider returns a CharSequence send it as text. Else call simply end().