public class BusinessChatBuilderKt
@NotNull public static <T extends Bus<T>> T withBusinessChat(@NotNull T $receiver, @NotNull kotlin.jvm.functions.Function0<? extends ai.tock.bot.connector.businesschat.model.input.BusinessChatConnectorMessage> messageProvider)
Adds a Business Chat ConnectorMessage if the current connector is Business Chat. You need to call BotBus.send or BotBus.end later to send this message.
@NotNull public static <T extends Bus<T>> BusinessChatConnectorMessage businessChatText(@NotNull T $receiver, @NotNull java.lang.CharSequence text)
Creates a BusinessChatText.
text - the text sent@NotNull public static <T extends Bus<T>> BusinessChatConnectorMessage businessChatAttachement(@NotNull T $receiver, @NotNull kotlin.Array[] attachment, @NotNull java.lang.String mimeType)
Creates a class BusinessChatConnectorImageMessage
attachment - an array of bytes containing an imagemimeType - the mime type of the image, which is image/png by defaultclass BusinessChatConnectorImageMessage@NotNull public static <T extends Bus<T>> BusinessChatConnectorMessage businessChatListPicker(@NotNull T $receiver, @NotNull java.lang.CharSequence title, @NotNull java.lang.CharSequence subtitle, @NotNull java.lang.CharSequence listDetails, @NotNull java.util.List<ai.tock.bot.connector.businesschat.model.input.ListPickerItem> items)
Creates a BusinessChatListPicker.
title - the list titlesubtitle - the list subtitlelistDetails - the list details, in the top of items listitems - the items list@NotNull public static <T extends Bus<T>> BusinessChatConnectorMessage businessChatRichLink(@NotNull T $receiver, @NotNull java.lang.String url, @NotNull java.lang.CharSequence title, @NotNull kotlin.Array[] image, @NotNull java.lang.String mimeType)
Creates a BusinessChatRichLink.
url - title - image - mimeType -