public class WhatsAppBuilderKt
@NotNull public static ai.tock.bot.connector.ConnectorType getWhatsAppConnectorType()
The WhatsApp connector type.
@NotNull public static <T extends Bus<T>> T sendToWhatsApp(@NotNull T $this$sendToWhatsApp, @NotNull kotlin.jvm.functions.Function1<? super T,? extends ai.tock.bot.connector.whatsapp.model.send.WhatsAppBotMessage> messageProvider, long delay)
Sends an WhatsApp message only if the ConnectorType of the current BotBus is whatsAppConnectorType.
whatsAppConnectorType@NotNull public static <T extends Bus<T>> T endForWhatsApp(@NotNull T $this$endForWhatsApp, @NotNull kotlin.jvm.functions.Function1<? super T,? extends ai.tock.bot.connector.whatsapp.model.send.WhatsAppBotMessage> messageProvider, long delay)
Sends an WhatsApp message as last bot answer, only if the ConnectorType of the current BotBus is whatsAppConnectorType.
whatsAppConnectorType@NotNull public static <T extends Bus<T>> T withWhatsApp(@NotNull T $this$withWhatsApp, @NotNull kotlin.jvm.functions.Function0<? extends ai.tock.bot.connector.whatsapp.model.send.WhatsAppBotMessage> messageProvider)
Adds a WhatsApp ConnectorMessage if the current connector is WhatsApp. You need to call BotBus.send or BotBus.end later to send this message.
@NotNull public static WhatsAppBotTextMessage whatsAppText(@NotNull ai.tock.bot.engine.BotBus $this$whatsAppText, @NotNull java.lang.CharSequence text, boolean previewUrl)
Creates a class WhatsAppBotTextMessage.
text - the text sentpreviewUrl - is preview mode is used?class WhatsAppBotTextMessage@NotNull public static WhatsAppBotImageMessage whatsAppImage(@NotNull ai.tock.bot.engine.BotBus $this$whatsAppImage, @NotNull kotlin.Array[] byteImages, @NotNull java.lang.String contentType, @Nullable java.lang.CharSequence caption)
Creates a class WhatsAppBotImageMessage.
class WhatsAppBotImageMessage