botbuilder-core package

Classes

BotAdapter

Abstract base class for all adapter plugins. Adapters manage the communication between the bot and a user over a specific channel, or set of channels.

MiddlewareSet

A set of Middleware plugins.

MiddlewareHandler

Signature implemented by function based middleware.

type MiddlewareHandler = (context: TurnContext, next: () => Promise<void>) => Promiseable<void>;
Promiseable

Type signature for a return value that can (Optionally) return its value asynchronously using a Promise.

type Promiseable <T = void> = Promise<T>|T;

"Promiseable" is a type alias. It refers to Promise and T.

TurnContext

Context object containing information cached for a single turn of conversation with a user.

DeleteActivityHandler

Signature implemented by functions registered with context.onDeleteActivity().

type DeleteActivityHandler = (context: TurnContext, reference: Partial<ConversationReference>, next: () => Promise<void>) => Promiseable<void>;
SendActivitiesHandler

Signature implemented by functions registered with context.onSendActivity().

type SendActivitiesHandler = (context: TurnContext, activities: Partial<Activity>[], next: () => Promise<ResourceResponse[]>) => Promiseable<ResourceResponse[]>;
UpdateActivityHandler

Signature implemented by functions registered with context.onUpdateActivity().

type UpdateActivityHandler = (context: TurnContext, activity: Partial<Activity>, next: () => Promise<void>) => Promiseable<void>;

Interfaces

Middleware

Interface implemented by object based middleware.