tock / ai.tock.bot.engine.message / MessagesList / toMessageList

toMessageList

fun toMessageList(default: CharSequence? = null, bus: BotBus, messageProvider: BotBus.() -> Any?): MessagesList (source)

Transforms messageProvider result into a MessageList.

Parameters

default - the default message used if messageProvider returns no message

messageProvider - the message provider.