tock / ai.tock.bot.engine / BotBus / send

send

open fun send(message: Message, delay: Long = defaultDelay(currentAnswerIndex)): BotBus (source)

Sends a Message.

open fun send(messages: MessagesList, initialDelay: Long = 0): BotBus (source)

Sends a MessagesList.

abstract fun send(action: Action, delay: Long = defaultDelay(currentAnswerIndex)): BotBus (source)

Sends an Action.

open fun send(delay: Long, messageProvider: BotBus.() -> Any?): BotBus (source)

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

open fun send(delay: Long): BotBus (source)

Sends previously registered ConnectorMessage.

open fun send(i18nText: CharSequence, delay: Long, vararg i18nArgs: Any?): BotBus (source)
open fun send(i18nText: CharSequence, vararg i18nArgs: Any?): BotBus (source)

Sends i18nText.