Bot Interface

public interface Bot

Represents a bot that can operate on incoming activities.

Method Summary

Modifier and Type Method and Description
abstract java.util.concurrent.CompletableFuture<java.lang.Void> onTurn(TurnContext turnContext)

When implemented in a bot, handles an incoming activity.

Method Details

onTurn

public abstract CompletableFuture onTurn(TurnContext turnContext)

When implemented in a bot, handles an incoming activity.

Parameters:

turnContext - The context object for this turn. Provides information about the incoming activity, and other data needed to process the activity.

Returns:

A task that represents the work queued to execute.

Applies to