tock / ai.tock.bot.connector.whatsapp / withWhatsApp

withWhatsApp

fun <T : Bus<T>> T.withWhatsApp(messageProvider: () -> WhatsAppBotMessage): T (source)

Adds a WhatsApp ConnectorMessage if the current connector is WhatsApp. You need to call BotBus.send or BotBus.end later to send this message.