Skip to content

Function: toReplyActivity()

toReplyActivity(inbound, cards, options?): object

Build an outbound activity carrying cards, addressed back to the sender of inbound.

Exported because a client rendering an optimistic local reply, and a test asserting the envelope, both need the same construction the turn uses.

object[] = ...

{ id: string; } = ...

string = ...

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

string = ...

string = ...

string = ...

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

string = ...

string = ...

string = ...

string = ...

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

object[]

{ id: string; name?: string; }

string = ...

string = ...

string

object

optional attachments?: object[]

optional conversation?: object

id: string

optional from?: object

id: string

optional name?: string

optional id?: string

optional recipient?: object

id: string

optional name?: string

optional text?: string

optional timestamp?: string

type: "message" | "conversationUpdate" | "typing"