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.
Parameters
Section titled “Parameters”activity
Section titled “activity”attachments?
Section titled “attachments?”object[] = ...
conversation?
Section titled “conversation?”{ id: string; } = ...
conversation.id
Section titled “conversation.id”string = ...
{ id: string; name?: string; } = ...
from.id
Section titled “from.id”string = ...
from.name?
Section titled “from.name?”string = ...
string = ...
recipient?
Section titled “recipient?”{ id: string; name?: string; } = ...
recipient.id
Section titled “recipient.id”string = ...
recipient.name?
Section titled “recipient.name?”string = ...
string = ...
timestamp?
Section titled “timestamp?”string = ...
"message" | "conversationUpdate" | "typing" = ...
target
Section titled “target”Returns
Section titled “Returns”Promise<string | undefined>