tock / ai.tock.bot.connector.messenger / MessengerConnector / notify

notify

fun notify(controller: ConnectorController, recipientId: PlayerId, intent: IntentAware, step: StoryStep<out StoryHandlerDefinition>?, parameters: Map<String, String>, notificationType: ActionNotificationType?, errorListener: (Throwable) -> Unit): Unit (source)

Sends a notification to the connector. A BotBus is created and the corresponding story is called.

Parameters

controller - the connector controller

recipientId - the recipient identifier

intent - the notification intent

step - the optional step target

parameters - the optional parameters

notificationType - notification type if any

errorListener - called when a message has not been delivered