Skip to content

Function: sendActivity()

sendActivity(activity, target): Promise<string | undefined>

Deliver one activity to a conversation through the Connector API.

Returns the id the channel assigned the posted activity, when it reports one - useful for a later update/delete, and for correlating logs with what a user sees in the channel.

object[] = ...

{ id: string; } = ...

string = ...

{ id: string; name?: string; } = ...

string = ...

string = ...

string = ...

{ id: string; name?: string; } = ...

string = ...

string = ...

string = ...

string = ...

"message" | "conversationUpdate" | "typing" = ...

ConnectorTarget

Promise<string | undefined>